Ensure fish scripts exit early
This commit is contained in:
parent
f0504b9960
commit
dfe292b8d1
2 changed files with 4 additions and 4 deletions
|
@ -97,7 +97,7 @@ begin
|
||||||
set -l file "/etc/systemd/system/getty@tty1.service.d/autologin.conf"
|
set -l file "/etc/systemd/system/getty@tty1.service.d/autologin.conf"
|
||||||
arch-chroot "$mountDir" mkdir -p (dirname "$file")
|
arch-chroot "$mountDir" mkdir -p (dirname "$file")
|
||||||
|
|
||||||
begin
|
and begin
|
||||||
printf %s\n \
|
printf %s\n \
|
||||||
"[Service]" \
|
"[Service]" \
|
||||||
"ExecStart=" \
|
"ExecStart=" \
|
||||||
|
|
|
@ -32,9 +32,9 @@ function runSetup
|
||||||
function runInOS -S
|
function runInOS -S
|
||||||
set -l script "/root/run_once"
|
set -l script "/root/run_once"
|
||||||
wrapScript $argv | chroot "$mountDir" tee "$script" > /dev/null
|
wrapScript $argv | chroot "$mountDir" tee "$script" > /dev/null
|
||||||
runChroot "$mountDir" chmod +x "$script"
|
and runChroot "$mountDir" chmod +x "$script"
|
||||||
runChroot "$mountDir" "$script"
|
and runChroot "$mountDir" "$script"
|
||||||
runChroot "$mountDir" rm "$script"
|
and runChroot "$mountDir" rm "$script"
|
||||||
end
|
end
|
||||||
|
|
||||||
function wrapScript -S
|
function wrapScript -S
|
||||||
|
|
Loading…
Reference in a new issue