mirror of
https://github.com/timsutton/brigadier.git
synced 2025-06-06 09:41:19 -04:00
Omit whereis check
This commit is contained in:
parent
1b3c3aa639
commit
4f18871b63
1 changed files with 1 additions and 9 deletions
|
@ -178,7 +178,7 @@ vercomp () {
|
|||
return
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
echo "0"
|
||||
}
|
||||
|
||||
get_local_python_version() {
|
||||
|
@ -189,14 +189,6 @@ get_local_python_version() {
|
|||
py_name="python3"
|
||||
fi
|
||||
py_list="$(which -a "$py_name" 2>/dev/null)"
|
||||
# Build a newline separated list from the whereis output too
|
||||
for python in "$(whereis "$py_name" 2>/dev/null)"; do
|
||||
if [ "$py_list" == "" ]; then
|
||||
py_list="$python"
|
||||
else
|
||||
py_list="$py_list${NL}$python"
|
||||
fi
|
||||
done
|
||||
# Walk that newline separated list
|
||||
while read python; do
|
||||
if [ "$python" == "" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue