Bin: fix NOS script (damn it shellcheck)
This commit is contained in:
parent
adc8eb8661
commit
6111416364
|
@ -98,11 +98,11 @@ options="--flake ${flakeDir}#${hostname} ${remainingArgs} --use-remote-sudo --lo
|
||||||
|
|
||||||
if [[ -n "${buildHost}" && "$operation" != "build" && "$operation" != *"dry"* ]]; then
|
if [[ -n "${buildHost}" && "$operation" != "build" && "$operation" != *"dry"* ]]; then
|
||||||
echo "Remote build detected, running this operation first: nixos-rebuild build ${options} --build-host $buildHost"
|
echo "Remote build detected, running this operation first: nixos-rebuild build ${options} --build-host $buildHost"
|
||||||
/run/current-system/sw/bin/nixos-rebuild build "$options" --build-host "$buildHost"
|
/run/current-system/sw/bin/nixos-rebuild build $options --build-host $buildHost
|
||||||
echo "Remote build complete!"
|
echo "Remote build complete!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running this operation: nixos-rebuild ${operation} ${options}"
|
echo "Running this operation: nixos-rebuild ${operation} ${options}"
|
||||||
/run/current-system/sw/bin/nixos-rebuild "$operation" "$options"
|
/run/current-system/sw/bin/nixos-rebuild $operation $options
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue