#!/bin/bash cd /home/aschroeder/emacs/git tmp=`tempfile` nice /usr/bin/git push > $tmp 2>&1 if [[ $? -ne 0 ]]; then cat $tmp fi rm $tmp