diff --git a/cmake/linux/launch_lmms.sh b/cmake/linux/launch_lmms.sh index 4a0eb30e233..02cebd5a48e 100644 --- a/cmake/linux/launch_lmms.sh +++ b/cmake/linux/launch_lmms.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash +alias standard_which="command -v" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export PATH="$PATH:/sbin" -if which carla > /dev/null 2>&1; then - CARLAPATH="$(which carla)" +if standard_which carla > /dev/null 2>&1; then + CARLAPATH="$(standard_which carla)" CARLAPREFIX="${CARLAPATH%/bin*}" echo "Carla appears to be installed on this system at $CARLAPREFIX/lib[64]/carla so we'll use it." export LD_LIBRARY_PATH=$CARLAPREFIX/lib/carla:$CARLAPREFIX/lib64/carla:$LD_LIBRARY_PATH