diff options
author | nl6720 <nl6720@gmail.com> | 2020-05-05 12:21:55 +0300 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2020-05-05 12:21:55 +0300 |
commit | 977af616e53f21df97668ca4b76ceb20737df9f3 (patch) | |
tree | 6f70b7c6bb70a87593212c7b6cf59cdc081074ea /tools/Linux | |
parent | 0c4d131d4aa9916123f670039e20a87694a8d96f (diff) |
[kodi-standalone.sh] Replace which with command -v
The which utility is not guaranteed to be installed. Use the portable shell builtin command -v.
Diffstat (limited to 'tools/Linux')
-rw-r--r-- | tools/Linux/kodi-standalone.sh.pulse | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Linux/kodi-standalone.sh.pulse b/tools/Linux/kodi-standalone.sh.pulse index c4d5564344..5273094b55 100644 --- a/tools/Linux/kodi-standalone.sh.pulse +++ b/tools/Linux/kodi-standalone.sh.pulse @@ -1,8 +1,8 @@ -PULSE_START="$(which start-pulseaudio-x11)" +PULSE_START="$(command -v start-pulseaudio-x11)" if [ -n "$PULSE_START" ]; then $PULSE_START else - PULSE_SESSION="$(which pulse-session)" + PULSE_SESSION="$(command -v pulse-session)" if [ -n "$PULSE_SESSION" ]; then XBMC="$PULSE_SESSION $XBMC" fi |