flake: deploy: abort on error
This commit is contained in:
@@ -265,6 +265,8 @@
|
|||||||
pkgs = self.legacyPackages."x86_64-linux";
|
pkgs = self.legacyPackages."x86_64-linux";
|
||||||
sanePkgs = import ./pkgs { inherit pkgs; };
|
sanePkgs = import ./pkgs { inherit pkgs; };
|
||||||
deployScript = host: addr: action: pkgs.writeShellScript "deploy-${host}" ''
|
deployScript = host: addr: action: pkgs.writeShellScript "deploy-${host}" ''
|
||||||
|
set -e
|
||||||
|
|
||||||
host="${host}"
|
host="${host}"
|
||||||
addr="${addr}"
|
addr="${addr}"
|
||||||
action="${if action != null then action else ""}"
|
action="${if action != null then action else ""}"
|
||||||
|
Reference in New Issue
Block a user