diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/git-auto-sync.sh | 3 |
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..." |
