From 54074215315b2591ee4a5537e5ac37a3636ffca0 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 18 Oct 2015 23:47:00 -0700 Subject: [PATCH] update 3 --- autoupdate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoupdate b/autoupdate index 595ed63..7a55142 100755 --- a/autoupdate +++ b/autoupdate @@ -10,7 +10,9 @@ if [ ! -d .git ]; then [ -e version ] && rm version git add .gitignore '*' '**/*' else - git add -u || echo "nothing new?" + git add -u + changes="$(git status --porcelain | wc -l)" + [ "$changes" -eq 0 ] && exit 0 fi if [ -s version ]; then