diff --git a/_scripts/auto_save.sh b/_scripts/auto_save.sh index c3519b9..f379fe9 100755 --- a/_scripts/auto_save.sh +++ b/_scripts/auto_save.sh @@ -15,7 +15,8 @@ source ${SPACE_TO_UNDERSCORE} source ${CLEAN_IMAGE_DIRECTORY} git pull -CHANGES_EXIST="$(git status --porcelain | wc -l)" + +CHANGES_EXIST="$(git status --porcelain | wc -l)" >/dev/null 2>$1 # If no changes, exit. Else commit and push with timestamp if [ "$CHANGES_EXIST" -eq 0 ]; then