From e33ceb594329ae21c841922a85f232102297b1d2 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 4 Feb 2023 11:05:10 +0100 Subject: Replace which by command -v --- radio.sh | 2 +- tv.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio.sh b/radio.sh index cecd9d0..c8526c8 100755 --- a/radio.sh +++ b/radio.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 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 -- cgit v1.2.3-70-g09d2