Return proper error code

This commit is contained in:
2023-03-10 00:26:32 -05:00
parent 59251dc34e
commit 25a5c7625f
2 changed files with 7 additions and 3 deletions

View File

@@ -20,7 +20,7 @@
systemd.services.alan = {
enable = true;
script = ''
${pkgs}.new_alan
${pkgs.new_alan}/bin/new_alan
'';
};
})

View File

@@ -132,10 +132,14 @@ ${pkgs.sops}/bin/sops -i -d secrets/config.nix
${pkgs.sops}/bin/sops -i -d secrets/deploy.sh
export flake="$tmp/src/deploy"
${pkgs.runtimeShell} ./secrets/deploy.sh
succ=$?
popd
rm -rf $tmp
echo Listing $tmp
ls $tmp && false || true
if [ $succ -eq 0 ]; then
true
else
false
fi
DOC
chmod +x $out
'';