Ensure fish scripts exit early

This commit is contained in:
Manuel Thalmann 2024-09-12 18:52:03 +02:00
parent 46a6847316
commit 2b8b26477f
2 changed files with 4 additions and 4 deletions

View file

@ -107,7 +107,7 @@ begin
set -l file "/etc/systemd/system/getty@tty1.service.d/autologin.conf"
arch-chroot "$mountDir" mkdir -p (dirname "$file")
begin
and begin
printf %s\n \
"[Service]" \
"ExecStart=" \

View file

@ -32,9 +32,9 @@ function runSetup
function runInOS -S
set -l script "/root/run_once"
wrapScript $argv | chroot "$mountDir" tee "$script" > /dev/null
runChroot "$mountDir" chmod +x "$script"
runChroot "$mountDir" "$script"
runChroot "$mountDir" rm "$script"
and runChroot "$mountDir" chmod +x "$script"
and runChroot "$mountDir" "$script"
and runChroot "$mountDir" rm "$script"
end
function wrapScript -S