From 7efa3ccd507aa282d665bde1d60f379a7a3785c0 Mon Sep 17 00:00:00 2001 From: lixulun Date: Wed, 25 Mar 2026 23:57:53 +0800 Subject: [PATCH] cd to script directory before git add --- ,commit-and-push-self | 2 ++ 1 file changed, 2 insertions(+) diff --git a/,commit-and-push-self b/,commit-and-push-self index ce0bd3e..4eb66cb 100755 --- a/,commit-and-push-self +++ b/,commit-and-push-self @@ -1,5 +1,7 @@ #!/usr/bin/env bash +cd "$(dirname "$0")" + git add -A if [ -z "$(git status --porcelain)" ]; then