ptgdp: Correct syntax on mpc validation

This commit is contained in:
Salt 2019-08-19 01:45:25 -05:00
parent a41600823a
commit 69ea2472bd

2
ptgdp
View File

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