From 69ea2472bd971a5f74d5e93fa574eea69a53a017 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Mon, 19 Aug 2019 01:45:25 -0500
Subject: [PATCH] ptgdp: Correct syntax on mpc validation

---
 ptgdp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ptgdp b/ptgdp
index 8ba3f40..656b2d4 100755
--- a/ptgdp
+++ b/ptgdp
@@ -439,7 +439,7 @@ main() {
 				;;
 		esac
 	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 "$_optdownloadonly" ] && [ -n "$_optautoplay" ] && error "Flags -d and -p conflict" 2
 	if [ -n "$_optrofi" ]; then rofimenu; exit $?; fi