17804.patch 950 B

1234567891011121314151617181920212223242526
  1. From 977af616e53f21df97668ca4b76ceb20737df9f3 Mon Sep 17 00:00:00 2001
  2. From: nl6720 <nl6720@gmail.com>
  3. Date: Tue, 5 May 2020 12:21:55 +0300
  4. Subject: [PATCH] [kodi-standalone.sh] Replace which with command -v
  5. The which utility is not guaranteed to be installed. Use the portable shell builtin command -v.
  6. ---
  7. tools/Linux/kodi-standalone.sh.pulse | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/tools/Linux/kodi-standalone.sh.pulse b/tools/Linux/kodi-standalone.sh.pulse
  10. index c4d556434427..5273094b5574 100644
  11. --- a/tools/Linux/kodi-standalone.sh.pulse
  12. +++ b/tools/Linux/kodi-standalone.sh.pulse
  13. @@ -1,8 +1,8 @@
  14. -PULSE_START="$(which start-pulseaudio-x11)"
  15. +PULSE_START="$(command -v start-pulseaudio-x11)"
  16. if [ -n "$PULSE_START" ]; then
  17. $PULSE_START
  18. else
  19. - PULSE_SESSION="$(which pulse-session)"
  20. + PULSE_SESSION="$(command -v pulse-session)"
  21. if [ -n "$PULSE_SESSION" ]; then
  22. XBMC="$PULSE_SESSION $XBMC"
  23. fi