cd to script directory before git add

This commit is contained in:
lixulun committed 2026-03-25 23:57:53 +08:00
1 parent add5477c52
commit 7efa3ccd50
1 file changed
+2
+2
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
git add -A
if [ -z "$(git status --porcelain)" ]; then