diff options
author | Mike Kobler <michael.kobler@hgst.com> | 2015-06-30 08:32:45 -0500 |
---|---|---|
committer | Mike Kobler <michael.kobler@hgst.com> | 2015-06-30 08:32:45 -0500 |
commit | 25da1ffe371a63237404f4959a81efaf1405154e (patch) | |
tree | 198b3c633e856cb2bc45bd5ad13b5dd6fcb621db | |
parent | 60eac0aa70673ff87e7cb6ef37b8b1dd6393701e (diff) | |
download | task-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-x | task-git.sh | 6 |
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 |