Skip to content

Commit 48691f2

Browse files
committed
"set -u" before "set -x"
1 parent 932af67 commit 48691f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/anyenv-git

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
# Example: anyenv git pull
77
# anyenv git gc
88

9-
set -eo pipefail
10-
[ -n "$ANYENV_DEBUG" ] && set -x
11-
set -u
9+
set -euo pipefail
10+
[ -n "${ANYENV_DEBUG-}" ] && set -x
1211

1312
anyenv_git () {
1413
if [ -d .git ]; then

0 commit comments

Comments
 (0)