summaryrefslogtreecommitdiff
path: root/scripts/git-auto-sync.sh
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-06-02 21:23:23 +0300
committerKyren223 <contact@kyren.codes>2026-06-02 21:23:23 +0300
commit7e5a9264f38aac800053ee695177bfc493bfb853 (patch)
tree29d16a81b693839cce9c6a1c97263f1a9758ac91 /scripts/git-auto-sync.sh
parent65855b570a5f6a77c4ecd23c7a9cacaa31dfade5 (diff)
make sure to also commit new untracked files in git-auto-sync
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..."