From d36070fa183ab785d8865dfa587c46a75587ee65 Mon Sep 17 00:00:00 2001 From: Mari Date: Wed, 3 Mar 2021 18:16:23 -0500 Subject: [PATCH] Autocommitted updated scripts from costadelsol --- bash_aliases.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bash_aliases.sh b/bash_aliases.sh index f9b95b0..6204bf4 100644 --- a/bash_aliases.sh +++ b/bash_aliases.sh @@ -49,6 +49,7 @@ function copy_func() function sync_git_only() { + ( cd "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )" if git add . && ! git diff-index --cached --quiet HEAD; then git commit -am "Autocommitted updated scripts from $(hostname)"