From fc3821150c5d56d20c6e79275718f54cd74335a1 Mon Sep 17 00:00:00 2001 From: AltonV Date: Thu, 5 Nov 2015 15:32:54 +0100 Subject: [PATCH] checking for "nothing to commit" doen't work when using another language than english --- plexupdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index 01231c5..2adcf1c 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -108,8 +108,8 @@ if [ "${AUTOUPDATE}" == "yes" ]; then echo "Error: This is not a git repository, auto update only works if you've done a git clone" exit 1 fi - git status | grep "nothing to commit" >/dev/null 2>/dev/null - if [ $? -ne 0 ]; then + git status | grep "git commit -a" >/dev/null 2>/dev/null + if [ $? -eq 0 ]; then echo "Error: You have made changes to the script, cannot auto update" exit 1 fi