Ensure fish scripts exit early
This commit is contained in:
parent
f0504b9960
commit
dfe292b8d1
|
@ -97,7 +97,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=" \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue