diff options
author | neodarz <neodarz@neodarz.net> | 2017-02-03 13:46:11 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-02-03 13:46:11 +0100 |
commit | 6a2759f1f766ad388116c6d1635111e205b3b572 (patch) | |
tree | d7d38a5e38365ea0c3c6a0beadc6df23afe839a4 | |
parent | 9ed8db11a3beecf08e8292d197fd0901e2d33b44 (diff) | |
download | task-git-6a2759f1f766ad388116c6d1635111e205b3b572.tar.xz task-git-6a2759f1f766ad388116c6d1635111e205b3b572.zip |
fix error this is not a repot git
Diffstat (limited to '')
-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 |