aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kobler <michael.kobler@hgst.com>2015-06-30 08:32:45 -0500
committerMike Kobler <michael.kobler@hgst.com>2015-06-30 08:32:45 -0500
commit25da1ffe371a63237404f4959a81efaf1405154e (patch)
tree198b3c633e856cb2bc45bd5ad13b5dd6fcb621db
parent60eac0aa70673ff87e7cb6ef37b8b1dd6393701e (diff)
downloadtask-git-25da1ffe371a63237404f4959a81efaf1405154e.tar.xz
task-git-25da1ffe371a63237404f4959a81efaf1405154e.zip
Call task after performing git operations
Prevents top of task output from being scrolled off screen.
Diffstat (limited to '')
-rwxr-xr-xtask-git.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/task-git.sh b/task-git.sh
index 0e51278..491757c 100755
--- a/task-git.sh
+++ b/task-git.sh
@@ -96,9 +96,6 @@ if [ "$PULL" == 1 ]; then
exit 0
fi
-# Call task, commit files and push if flag is set.
-/usr/bin/task $@
-
# Add to git
git add . > $LOGFILE
git commit -m "$TASK_COMMAND" > $LOGFILE
@@ -109,6 +106,9 @@ if [ "$PUSH" == 1 ]; then
git push origin master > $LOGFILE
fi
+# Call task
+/usr/bin/task $@
+
popd > $LOGFILE
exit 0