Skip to content

Commit

Permalink
No extra newline on git-secret-changes … fix sobolevn#291
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonCsSanders committed Dec 28, 2018
1 parent 8c88ca4 commit 1700b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/git_secret_changes.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function changes {
decrypted=$(_decrypt "$path" "0" "0" "$homedir" "$passphrase")

# Let's diff the result:
diff_result=$(diff -u <(echo "$decrypted") "$path") || true
diff_result=$(diff -u <(echo -n "$decrypted") "$path") || true
# There was a bug in the previous version, since `diff` returns
# exit code `1` when the files are different.
echo "changes in ${path}:"
Expand Down

0 comments on commit 1700b0f

Please sign in to comment.