From 3a491e398d97299b9e4b0cd7333608124a0ee358 Mon Sep 17 00:00:00 2001 From: Tilman Kranz Date: Sun, 30 Mar 2025 05:58:22 +0200 Subject: [PATCH] use type instead of which to test for required tools --- pulseaudio-tcp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pulseaudio-tcp b/pulseaudio-tcp index c016c7d..5255e04 100644 --- a/pulseaudio-tcp +++ b/pulseaudio-tcp @@ -433,13 +433,13 @@ else fi fi - if test -z "$(which jq)" ; then + if test -z "$(type -p jq)" ; then echo "ERROR: Required executable \"jq\" not found." >&2 rv=1 - elif test -z "$(which pactl)" ; then + elif test -z "$(type -p pactl)" ; then echo "ERROR: Required executable \"pactl\" not found." >&2 rv=1 - elif test -z "$(which ssh)" ; then + elif test -z "$(type -p ssh)" ; then echo "ERROR: Required executable \"ssh\" not found." >&2 rv=1 fi