Keep secrets when decryption is impossible
This commit is contained in:
parent
26c8ed0c05
commit
ab62941eb3
@ -65,7 +65,12 @@ let
|
||||
else
|
||||
echo "Failed to decrypt the secret"
|
||||
rm '${decrypted}.tmp'
|
||||
exit 1
|
||||
if [[ -f '${decrypted}' ]]; then
|
||||
echo "The decrypted file exists anyways, not failing"
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user