From e71570687f129e0ae598abb9538adb78366c2e6a Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Tue, 29 Nov 2016 19:35:56 -0800 Subject: [PATCH] Logic is hard is hard --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index 32a0ffd..b2e263b 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -327,7 +327,7 @@ if [ "${AUTOUPDATE}" = "yes" ]; then exit 1 fi - if git fetch --quiet && git diff --quiet FETCH_HEAD; then + if git fetch --quiet && ! git diff --quiet FETCH_HEAD; then info "Auto-updating..." if ! git merge --quiet FETCH_HEAD; then error 'Unable to update git, try running "git pull" manually to see what is wrong'