Execute partition script using shebang

This commit is contained in:
Manuel Thalmann 2024-09-12 18:44:14 +02:00
parent b5f8949138
commit afbff7ac8c
2 changed files with 8 additions and 3 deletions
scripts/Common/OS

View file

@ -8,6 +8,7 @@ function runSetup
set -l projectName (basename "$projectRoot")
set -l PROJECT_CLONE_ROOT "/opt/$(basename "$projectName")"
set -l script (mktemp)
chmod +x "$script"
if not type -q runChroot
function runChroot -S
@ -44,7 +45,8 @@ function runSetup
end
getConfig valhalla.partition.script > "$script"
bash "$script"
and "$script"
and rm "$script"
# Copy `nixpkgs` channel
and begin