Check return value contents

Closes #156
This commit is contained in:
Jose Diaz-Gonzalez
2016-05-26 11:54:14 -04:00
parent 65f40f8f6e
commit 21c0b68213

View File

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