ptgdp: More dependency checks

This commit is contained in:
Salt 2019-08-14 04:13:59 -05:00
parent 0ee928cae9
commit e3e9e92838

1
ptgdp
View File

@ -352,6 +352,7 @@ main() {
;;
esac
done
[ -z "$_optdownloadonly" ] && [ -z "$_optdryrun" ] && validatedeps mpc || error "$_return is required outside of dry- and download-only runs"
[ -n "$_optfile" ] && [ -n "$_optrofi" ] && error "Flags -f and -r conflict" 2
[ -n "$_optdownloadonly" ] && [ -n "$_optautoplay" ] && error "Flags -d and -p conflict" 2
if [ -n "$_optrofi" ]; then rofimenu; exit $?; fi