Skip to content
Snippets Groups Projects
Commit 982d98af authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Make debug & verbose testing more resilient

parent e003251c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
[ "$VCSH_DEBUG" = '1' ] && set -x [ -n "$VCSH_DEBUG" ] && set -x
SELF=$(basename $0) SELF=$(basename $0)
...@@ -20,11 +20,11 @@ done ...@@ -20,11 +20,11 @@ done
VCSH_BASE="$XDG_CONFIG_HOME/vcsh/repo.d" VCSH_BASE="$XDG_CONFIG_HOME/vcsh/repo.d"
debug() { debug() {
[ "$VCSH_DEBUG" = '1' ] && echo "$SELF: debug: $1" [ -n "$VCSH_DEBUG" ] && echo "$SELF: debug: $1"
} }
verbose() { verbose() {
if [ "$VCSH_DEBUG" = '1' ] || [ "$VCSH_VERBOSE" = '1' ]; then echo "$SELF: verbose: $1"; fi if [ -n "$VCSH_DEBUG" ] || [ -n "$VCSH_VERBOSE" ]; then echo "$SELF: verbose: $1"; fi
} }
# use <repo> Use this repository # use <repo> Use this repository
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment