Skip to content

Commit 4a63126

Browse files
Fix unresolved variable usage
1 parent 9a790fb commit 4a63126

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libexec/goenv-version-name

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ version_exists() {
2626
local input_version="$1"
2727
local use_go_mod="$2"
2828

29-
if [[ -n use_go_mod ]] && [[ -d ${GOENV_ROOT}/versions ]] && grep -q -E "^[0-9]+\.[0-9]+\.?[0-9]*(\s*)$" <<<${input_version}; then
29+
if [[ -n $use_go_mod ]] && [[ -d ${GOENV_ROOT}/versions ]] && grep -q -E "^[0-9]+\.[0-9]+\.?[0-9]*(\s*)$" <<<${input_version}; then
3030
OLDIFS="$IFS"
3131
IFS=$'\n'
3232
local version_regex=$(echo ${input_version} | sed s/\\./\\\\./)

libexec/goenv-which

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ version_exists() {
6363
local input_version="$1"
6464
local use_go_mod="$2"
6565

66-
if [[ -n use_go_mod ]] && [[ -d ${GOENV_ROOT}/versions ]] && grep -q -E "^[0-9]+\.[0-9]+(\s*)$" <<<${input_version}; then
66+
if [[ -n $use_go_mod ]] && [[ -d ${GOENV_ROOT}/versions ]] && grep -q -E "^[0-9]+\.[0-9]+(\s*)$" <<<${input_version}; then
6767
OLDIFS="$IFS"
6868
IFS=$'\n'
6969
local version_regex=$(echo ${input_version} | sed s/\\./\\\\./)

0 commit comments

Comments
 (0)