Skip to content

Commit 85af0db

Browse files
committed
fix: Update PATH handling in build script and correct argument names for consistency
1 parent e77f3eb commit 85af0db

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

alteriso/build.sh

100644100755
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ work_dir="$script_path/work"
1414
binfile="$(mktemp -u)"
1515
go build -o "$binfile" "$script_path/src"
1616

17-
# Set mkarchiso path
18-
PATH="$(realpath "$script_path/../archiso/"):$PATH"
19-
export PATH
20-
2117
# Execute the build command
22-
"$binfile" profile \
18+
sudo PATH="$(realpath "$script_path/../archiso/"):$(sudo -Hiu root bash -c 'echo "$PATH"')" \
19+
"$binfile" profile \
2320
--bootloaders "$script_path/bootloaders/" \
2421
--modules "$script_path/modules/" \
2522
build \
26-
--workdir "$work_dir" \
27-
--outdir "$script_path/out" \
23+
--work "$work_dir" \
24+
--out "$script_path/out" \
2825
"$profile_dir" "$@"
2926

3027
# Clean up

0 commit comments

Comments
 (0)