check: deps

- #6
This commit is contained in:
Harshith 2021-06-11 18:48:20 +05:30
parent bf903f746e
commit b4d98eb249

10
ani-cli
View File

@ -78,6 +78,16 @@ get_links () {
' '
} }
dep_ch () {
for dep; do
if ! command -v "$dep" >/dev/null ; then
die "Program \"$dep\" not found. Please install it."
fi
done
}
dep_ch "mpv" "curl" "sed"
##################### #####################
## Anime selection ## ## Anime selection ##
##################### #####################