move mpv check
This commit is contained in:
parent
1b7be995a7
commit
0b6c306723
1 changed files with 5 additions and 5 deletions
10
strm
10
strm
|
|
@ -39,11 +39,6 @@ function error {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if mpv is installed
|
|
||||||
if ! command -v mpv &>/dev/null; then
|
|
||||||
error "mpv was not found, please install it"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set default values
|
# Set default values
|
||||||
config="$HOME/.config/strm/strm.config"
|
config="$HOME/.config/strm/strm.config"
|
||||||
fullscreen=false
|
fullscreen=false
|
||||||
|
|
@ -158,6 +153,11 @@ if [ "$remote" != "" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if mpv is installed
|
||||||
|
if ! command -v mpv &>/dev/null; then
|
||||||
|
error "mpv was not found, please install it"
|
||||||
|
fi
|
||||||
|
|
||||||
# Print usage if no queries were given
|
# Print usage if no queries were given
|
||||||
if [ "${#queries[@]}" == 0 ]; then
|
if [ "${#queries[@]}" == 0 ]; then
|
||||||
print_usage
|
print_usage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue