From 25da1ffe371a63237404f4959a81efaf1405154e Mon Sep 17 00:00:00 2001 From: Mike Kobler Date: Tue, 30 Jun 2015 08:32:45 -0500 Subject: Call task after performing git operations Prevents top of task output from being scrolled off screen. --- task-git.sh | 6 +++--- 1 file 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 -- cgit v1.2.1