fix(archiso): chown work and output dirs back to user after mkarchiso

sudo mkarchiso leaves files owned by root, causing rm -rf to fail on re-runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
The_miro 2026-05-19 22:24:25 +02:00
parent 278ffb4a5a
commit 9e541eb21b
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ fi
echo "Building ISO (this may take a while)..."
sudo mkarchiso -v -w "$WORK_DIR/mkarchiso" -o "$OUT_DIR" "$PROFILE"
sudo chown -R "$(id -u):$(id -g)" "$WORK_DIR" "$OUT_DIR"
echo
echo "Done."