From 659b97f184a8d652ba94fe47cd185f19f5c0b233 Mon Sep 17 00:00:00 2001 From: Darshaka Pathirana Date: Fri, 5 Feb 2021 15:15:50 +0100 Subject: [PATCH] usr_bin/soundtest: Fix a couple of shellcheck warnings - SC2046: Quote this to prevent word splitting. - SC2230: which is non-standard. Use builtin 'command -v' instead. --- usr_bin/soundtest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr_bin/soundtest b/usr_bin/soundtest index 6146df7..dc57bf3 100755 --- a/usr_bin/soundtest +++ b/usr_bin/soundtest @@ -6,7 +6,7 @@ # License: This file is licensed under the GPL v2. ################################################################################ -if ! [ $(which speaker-test) ] ; then +if ! [ "$(command -v speaker-test)" ] ; then echo "Sorry, speaker-test (from alsa-utils) not available.">&2 exit 1 fi -- 2.1.4