aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xconfigure_git.sh (renamed from backup_gitconfig.sh)3
1 files changed, 2 insertions, 1 deletions
diff --git a/backup_gitconfig.sh b/configure_git.sh
index d0224a5..36beda2 100755
--- a/backup_gitconfig.sh
+++ b/configure_git.sh
@@ -2,5 +2,6 @@
set -o errexit -o nounset -o pipefail
-script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" && pwd )"
+script_dir="$( dirname -- "${BASH_SOURCE[0]}" )"
+script_dir="$( cd -- "$script_dir" && pwd )"
cp --remove-destination -- "$script_dir/%HOME%/.gitconfig" ~