summaryrefslogtreecommitdiff
path: root/tv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tv.sh')
-rwxr-xr-xtv.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tv.sh b/tv.sh
index fdfc70e..69b6bae 100755
--- a/tv.sh
+++ b/tv.sh
@@ -13,7 +13,7 @@ station="$1"
trap 'exit 0' 2 15
# check dependency and warn user if necessary
-if ! which mpv > /dev/null 2>&1
+if ! command -v mpv > /dev/null 2>&1
then
echo 'You have to install mpv (e.g. sudo pacman -S mpv mpv-mpris)'
exit 1