Merge pull request #35 from AltonV/master

checking for "nothing to commit" doen't work when using another language than english
This commit is contained in:
Henric Andersson 2015-11-05 10:15:24 -08:00
commit b46b24f46f

View file

@ -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" echo "Error: This is not a git repository, auto update only works if you've done a git clone"
exit 1 exit 1
fi fi
git status | grep "nothing to commit" >/dev/null 2>/dev/null git status | grep "git commit -a" >/dev/null 2>/dev/null
if [ $? -ne 0 ]; then if [ $? -eq 0 ]; then
echo "Error: You have made changes to the script, cannot auto update" echo "Error: You have made changes to the script, cannot auto update"
exit 1 exit 1
fi fi