Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Commit

Permalink
When debuging, output status messages as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
dashohoxha committed Jun 6, 2016
1 parent b64f1ce commit 90e2bc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
gpg() {
local opts='--quiet'
[[ -t 0 ]] || opts+=' --no-tty'
is_true $DEBUG && echo "debug: $(which gpg2) $opts $@" 1>&2
if is_true $DEBUG; then
opts+=' --status-fd=2'
echo "debug: $(which gpg2) $opts $@" 1>&2
fi
"$(which gpg2)" $opts "$@"
}
export -f gpg
Expand Down

0 comments on commit 90e2bc4

Please sign in to comment.