Skip to content

Commit 650b2fc

Browse files
committedJan 7, 2019
make safe for strict mode
1 parent 735dce3 commit 650b2fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎etc/install/prefix-retry.bash

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
[ -n "$NODENV_PREFIX_RETRY" ] || return 0
1+
[ -n "${NODENV_PREFIX_RETRY-}" ] || return 0
22

33
retry_without_prefix() {
4-
[ "$STATUS" = 2 ] || return 0
4+
[ "${STATUS-}" = 2 ] || return 0
55

6-
fallback_name=${VERSION_NAME#node-}
6+
fallback_name=${VERSION_NAME-}
7+
fallback_name=${fallback_name#node-}
78
fallback_name=${fallback_name#v}
89

910
[ "$fallback_name" != "$VERSION_NAME" ] || return 0

0 commit comments

Comments
 (0)
Please sign in to comment.