flake: deploy: abort on error

This commit is contained in:
Colin 2024-02-28 17:34:45 +00:00
parent a4248fd5cc
commit 7ca5ae84b7
1 changed files with 2 additions and 0 deletions

View File

@ -265,6 +265,8 @@
pkgs = self.legacyPackages."x86_64-linux";
sanePkgs = import ./pkgs { inherit pkgs; };
deployScript = host: addr: action: pkgs.writeShellScript "deploy-${host}" ''
set -e
host="${host}"
addr="${addr}"
action="${if action != null then action else ""}"