diff --git a/src/commands/git_secret_reveal.sh b/src/commands/git_secret_reveal.sh index da8dee66..82e04f9d 100644 --- a/src/commands/git_secret_reveal.sh +++ b/src/commands/git_secret_reveal.sh @@ -42,6 +42,10 @@ function reveal { # The parameters are: filename, write-to-file, force, homedir, passphrase _decrypt "$path" "1" "$force" "$homedir" "$passphrase" + if [[ ! -f "$path" ]]; then + _abort "cannot find decrypted version of file: $filename" + fi + counter=$((counter+1)) done < "$path_mappings"