File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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/\\ ./\\\\ ./)
Original file line number Diff line number Diff 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/\\ ./\\\\ ./)
You can’t perform that action at this time.
0 commit comments