From 44c512226f33fb17ab41b2b60e06d88c22486e33 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 17 Sep 2016 23:31:09 +0200 Subject: [PATCH] make the script more general change the repo path to ~/ because the configs might as well lay in a different home directory. In addition I've add a variable which brings the user back to his starting point. --- general/update_dot_files/update_dot_files.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/general/update_dot_files/update_dot_files.sh b/general/update_dot_files/update_dot_files.sh index dc23d3c..79f8c5a 100755 --- a/general/update_dot_files/update_dot_files.sh +++ b/general/update_dot_files/update_dot_files.sh @@ -1,5 +1,7 @@ #! /bin/bash -cd /home/andreas/dot_files/ +directory=`pwd` +cd ~/git_repos/dot_files/ git add . git commit -m "update configs" git push +cd $directory