summaryrefslogtreecommitdiff
path: root/scripts/git-auto-sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-auto-sync.sh')
-rwxr-xr-xscripts/git-auto-sync.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/git-auto-sync.sh b/scripts/git-auto-sync.sh
index 07f43f2..8c9573e 100755
--- a/scripts/git-auto-sync.sh
+++ b/scripts/git-auto-sync.sh
@@ -34,7 +34,8 @@ sync_repo() {
return
fi
- if git diff --quiet; then
+ # Check for ANY changes, including untracked files
+ if [[ -z $(git status --porcelain) ]]; then
echo "No unstaged changes in $repo_path"
else
echo "Committing changes in $repo_path..."