Skip to content

Commit

Permalink
appimage: Use command -v instead of which (sc2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reflexe committed Nov 1, 2019
1 parent 455692a commit 769eadd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/linux/launch_lmms.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 769eadd

Please sign in to comment.