Skip to content

Commit

Permalink
"set -u" before "set -x"
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed Dec 17, 2013
1 parent f1cf761 commit f246ec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions bin/rbenv-plug
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
# rbenv plug <github-user/repo>
# rbenv plug <git-url>

set -eo pipefail
[ -n "$RBENV_DEBUG" ] && set -x
set -u
set -euo pipefail
[ -n "${RBENV_DEBUG-}" ] && set -x
shopt -s nullglob

[ $# -gt 0 ] || exec rbenv-help plug
Expand Down
5 changes: 2 additions & 3 deletions bin/rbenv-unplug
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
# for confirmation. If the plugins do not exist, do not
# display an error message.

set -e
[ -n "$RBENV_DEBUG" ] && set -x
set -u
set -euo pipefail
[ -n "${RBENV_DEBUG-}" ] && set -x
shopt -s nullglob

[ $# -gt 0 ] || exec rbenv-help unplug
Expand Down

0 comments on commit f246ec5

Please sign in to comment.