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

Commit

Permalink
Add -x option to all shell scripts, which enables set -x
Browse files Browse the repository at this point in the history
  • Loading branch information
eklitzke committed Nov 1, 2018
1 parent 8956a01 commit eb4200b
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 eb4200b

Please sign in to comment.