summaryrefslogtreecommitdiff
path: root/libre/kodi/17804.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/kodi/17804.patch')
-rw-r--r--libre/kodi/17804.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/libre/kodi/17804.patch b/libre/kodi/17804.patch
new file mode 100644
index 000000000..9ed7098e9
--- /dev/null
+++ b/libre/kodi/17804.patch
@@ -0,0 +1,25 @@
+From 977af616e53f21df97668ca4b76ceb20737df9f3 Mon Sep 17 00:00:00 2001
+From: nl6720 <nl6720@gmail.com>
+Date: Tue, 5 May 2020 12:21:55 +0300
+Subject: [PATCH] [kodi-standalone.sh] Replace which with command -v
+
+The which utility is not guaranteed to be installed. Use the portable shell builtin command -v.
+---
+ tools/Linux/kodi-standalone.sh.pulse | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tools/Linux/kodi-standalone.sh.pulse b/tools/Linux/kodi-standalone.sh.pulse
+index c4d556434427..5273094b5574 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