Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #89 from eklitzke/trace
Browse files Browse the repository at this point in the history
Add -x option to all shell scripts, which enables set -x
  • Loading branch information
caarlos0 authored Jan 15, 2019
2 parents db2e2f2 + eb4200b commit 9286de5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion shell_equinoxio.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ parse_args() {
# over-ridden by flag below
BINDIR=${BINDIR:-./bin}
while getopts "b:dh?" arg; do
while getopts "b:dh?x" arg; do
case "$arg" in
b) BINDIR="$OPTARG" ;;
d) log_set_priority 10 ;;
h | \?) usage "$0" ;;
x) set -x ;;
esac
done
shift $((OPTIND - 1))
Expand Down
3 changes: 2 additions & 1 deletion shell_godownloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ parse_args() {
# over-ridden by flag below
BINDIR=${BINDIR:-./bin}
while getopts "b:dh?" arg; do
while getopts "b:dh?x" arg; do
case "$arg" in
b) BINDIR="$OPTARG" ;;
d) log_set_priority 10 ;;
h | \?) usage "$0" ;;
x) set -x ;;
esac
done
shift $((OPTIND - 1))
Expand Down
6 changes: 3 additions & 3 deletions shell_raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ parse_args() {
# over-ridden by flag below
BINDIR=${BINDIR:-./bin}
while getopts "b:dh?" arg; do
while getopts "b:dh?x" arg; do
case "$arg" in
b) BINDIR="$OPTARG" ;;
d) log_set_priority 10 ;;
h) usage "$0" ;;
\?) usage "$0" ;;
h | \?) usage "$0" ;;
x) set -x ;;
esac
done
shift $((OPTIND - 1))
Expand Down

0 comments on commit 9286de5

Please sign in to comment.