projects
/
grml-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2980f79
)
usr_bin/soundtest: Fix a couple of shellcheck warnings
author
Darshaka Pathirana
<dpat@syn-net.org>
Fri, 5 Feb 2021 14:15:50 +0000
(15:15 +0100)
committer
Darshaka Pathirana
<dpat@syn-net.org>
Fri, 3 Dec 2021 11:54:54 +0000
(12:54 +0100)
- SC2046: Quote this to prevent word splitting.
- SC2230: which is non-standard. Use builtin 'command -v' instead.
usr_bin/soundtest
patch
|
blob
|
history
diff --git
a/usr_bin/soundtest
b/usr_bin/soundtest
index
6146df7
..
dc57bf3
100755
(executable)
--- 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