Skip to content

Commit c431852

Browse files
committed
automatically set $Root to the output of pwd
this eliminates one edit we have to make to the VARIABLES.sh script before running, with the caveat that the user has to be in the same directory as the scripts (which the README.md was already assuming anyway)
1 parent 5583600 commit c431852

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,10 @@ sudo chmod +x apply.sh
6666
sudo chmod +x unmount_images.sh
6767
```
6868

69-
Change the root directory in VARIABLES.sh
70-
71-
```bash
72-
pwd
73-
```
74-
75-
(take note of the output)
76-
77-
```bash
78-
nano VARIABLES.sh
79-
```
80-
81-
replace the root variable with the output of pwd up until and including the WSAGAScript folder
82-
8369
### Run the scripts
8470

71+
make sure you're in the same directory as the scripts before running, then run:
72+
8573
```bash
8674
sudo ./extract_gapps_pico.sh
8775
sudo ./extend_and_mount_images.sh

VARIABLES.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Modify your variables here to corretly reference your directory and subdir
4-
Root="/mnt/c/GAppsWSA"
4+
Root="$(pwd)"
55

66
# Your Windows architecture, x64 or arm64
77
Architecture="x64"
@@ -21,4 +21,5 @@ MountPointSystem="/mnt/system"
2121
MountPointVendor="/mnt/vendor"
2222

2323
InstallPartition="/mnt/system"
24-
InstallDir="$InstallPartition/system"
24+
InstallDir="$InstallPartition/system"
25+

0 commit comments

Comments
 (0)