Skip to content

Commit

Permalink
Export VCSH_DEBUG and VCSH_VERBOSE
Browse files Browse the repository at this point in the history
This makes it possible to react to verbose and debug state from hooks.

Fixes: #175

Signed-off-by: Richard Hartmann <richih@richih.org>
  • Loading branch information
RichiH committed Apr 5, 2021
1 parent 8eccf4d commit f0bbc51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vcsh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ while getopts c:dv flag; do
d)
set -vx
VCSH_DEBUG=1
export VCSH_DEBUG
echo 'debug mode on'
echo "$SELF $VERSION"
;;
v)
VCSH_VERBOSE=1
export VCSH_VERBOSE
echo 'verbose mode on'
echo "$SELF $VERSION"
;;
Expand Down

0 comments on commit f0bbc51

Please sign in to comment.