From 6a2759f1f766ad388116c6d1635111e205b3b572 Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 3 Feb 2017 13:46:11 +0100 Subject: fix error this is not a repot git --- task-git.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/task-git.sh b/task-git.sh index 1962658..f9c26af 100755 --- a/task-git.sh +++ b/task-git.sh @@ -13,6 +13,7 @@ DATA_DIR=${DATA[1]} # Need to expand home dir ~ eval DATA_DIR=$DATA_DIR +pushd $DATA_DIR > $LOGFILE # Function for make a commit make_commit() { git add . > $LOGFILE @@ -65,7 +66,7 @@ do done -pushd $DATA_DIR > $LOGFILE + # Check if we have a place to push to GIT_REMOTE=$(git remote -v | grep push | grep origin | awk '{print $2}') if [ -z $GIT_REMOTE ]; then -- cgit v1.2.1