We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e77f3eb commit 85af0dbCopy full SHA for 85af0db
1 file changed
alteriso/build.sh
100644
100755
@@ -14,17 +14,14 @@ work_dir="$script_path/work"
14
binfile="$(mktemp -u)"
15
go build -o "$binfile" "$script_path/src"
16
17
-# Set mkarchiso path
18
-PATH="$(realpath "$script_path/../archiso/"):$PATH"
19
-export PATH
20
-
21
# Execute the build command
22
-"$binfile" profile \
+sudo PATH="$(realpath "$script_path/../archiso/"):$(sudo -Hiu root bash -c 'echo "$PATH"')" \
+ "$binfile" profile \
23
--bootloaders "$script_path/bootloaders/" \
24
--modules "$script_path/modules/" \
25
build \
26
- --workdir "$work_dir" \
27
- --outdir "$script_path/out" \
+ --work "$work_dir" \
+ --out "$script_path/out" \
28
"$profile_dir" "$@"
29
30
# Clean up
0 commit comments