diff options
| author | Kyren223 <contact@kyren.codes> | 2026-06-02 21:23:23 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-06-02 21:23:23 +0300 |
| commit | 7e5a9264f38aac800053ee695177bfc493bfb853 (patch) | |
| tree | 29d16a81b693839cce9c6a1c97263f1a9758ac91 /scripts/git-auto-sync.sh | |
| parent | 65855b570a5f6a77c4ecd23c7a9cacaa31dfade5 (diff) | |
make sure to also commit new untracked files in git-auto-sync
Diffstat (limited to 'scripts/git-auto-sync.sh')
| -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..." |
