From 4f18871b632a94e255792c88e28e3ad9fc083255 Mon Sep 17 00:00:00 2001 From: CorpNewt <12772521+corpnewt@users.noreply.github.com> Date: Sun, 6 Feb 2022 10:44:09 -0600 Subject: [PATCH] Omit whereis check --- brigadier.command | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/brigadier.command b/brigadier.command index 7ee9b0a..7f9ca14 100755 --- a/brigadier.command +++ b/brigadier.command @@ -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