flake: fix "preDeploy" action mishandling null

This commit is contained in:
Colin 2024-02-18 01:24:05 +00:00
parent 059940d8e7
commit a90898491e
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@
deployScript = host: addr: action: pkgs.writeShellScript "deploy-${host}" ''
host="${host}"
addr="${addr}"
action="${action}"
action="${if action != null then action else ""}"
runOnTarget() {
# run the command ($@) on the machine we're deploying to.
# if that's a remote machine, then do it via ssh, else local shell.