Fail early

This commit is contained in:
Alexander Bantyev 2021-01-11 21:00:16 +03:00
parent b930d66869
commit 696a70c9e0
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ let
else else
echo "Failed to run the substition" echo "Failed to run the substition"
rm '${substituted}.tmp' rm '${substituted}.tmp'
exit 1
fi fi
''; '';

View File

@ -64,6 +64,7 @@ let
else else
echo "Failed to decrypt the secret" echo "Failed to decrypt the secret"
rm '${decrypted}.tmp' rm '${decrypted}.tmp'
exit 1
fi fi
''; '';