Execute partition script using shebang
This commit is contained in:
parent
b5f8949138
commit
afbff7ac8c
2 changed files with 8 additions and 3 deletions
scripts/Common/OS
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue