File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 7777 echo "Looking for pattern \"${pattern}\" in eb_version.out..."
7878 grep "$pattern" eb_version.out
7979 done
80+ if grep -q "Considering ''" eb_version.out; then
81+ echo '`eb` did wrongly consider an empty command'
82+ false
83+ fi
8084 # also check when specifying Python command via $EB_PYTHON
8185 for eb_python in "python${pymajver}" "python${pymajminver}"; do
8286 export EB_PYTHON="${eb_python}"
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ PYTHON=
6262# time, this variable preserves that choice).
6363for python_cmd in " ${EB_PYTHON} " " ${EB_INSTALLPYTHON} " ' python' ' python3' ' python2' ; do
6464
65+ # Only consider non-empty values, i.e. continue if e.g. $EB_PYTHON is not set
66+ [ -n " ${python_cmd} " ] || continue
67+
6568 verbose " Considering '${python_cmd} '..."
6669
6770 # check whether python* command being considered is available
You can’t perform that action at this time.
0 commit comments