Merge pull request #164 from josegonzalez/patch-1

Check return value contents
This commit is contained in:
Tom Limoncelli
2016-05-26 13:47:41 -04:00

View File

@@ -36,7 +36,7 @@ function register_new_file() {
echo "========== UPDATING REPO:" echo "========== UPDATING REPO:"
shred_file "$unencrypted_file" shred_file "$unencrypted_file"
if "$SECRETSEXPOSED" ; then if [[ "$SECRETSEXPOSED" == "true" ]] ; then
vcs_remove "$unencrypted_file" vcs_remove "$unencrypted_file"
vcs_add "$encrypted_file" vcs_add "$encrypted_file"
fi fi