diff options
-rwxr-xr-x | task-git.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |