From 6dab6194ea3b1da18814791aa9c66e58b9c76700 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 1 Jul 2020 22:44:05 -0700 Subject: [PATCH] Replace which with command -v in startup script --- start.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/start.sh b/start.sh index 2a161686..1dfe749b 100755 --- a/start.sh +++ b/start.sh @@ -14,22 +14,22 @@ if [[ "$TAUTULLI_DOCKER" = "True" ]]; then echo "Running Tautulli using user $user (uid=$PUID) and group $group (gid=$PGID)" su "$user" -g "$group" -c "python /app/Tautulli.py --datadir /config" else - python Tautulli.py --datadir /config + python Tautulli.py --datadir /config fi else - if which python3 >/dev/null; then + if command -v python3 >/dev/null; then python3 Tautulli.py &> /dev/null & - elif which python3.8 >/dev/null; then + elif command -v python3.8 >/dev/null; then python3.8 Tautulli.py &> /dev/null & - elif which python3.7 >/dev/null; then + elif command -v python3.7 >/dev/null; then python3.7 Tautulli.py &> /dev/null & - elif which python3.6 >/dev/null; then + elif command -v python3.6 >/dev/null; then python3.6 Tautulli.py &> /dev/null & - elif which python >/dev/null; then + elif command -v python >/dev/null; then python Tautulli.py &> /dev/null & - elif which python2 >/dev/null; then + elif command -v python2 >/dev/null; then python2 Tautulli.py &> /dev/null & - elif which python2.7 >/dev/null; then + elif command -v python2.7 >/dev/null; then python2.7 Tautulli.py &> /dev/null & else echo "Cannot start Tautulli: python not found."