Ubuntu Pastebin

Paste from ogra at Fri, 7 Oct 2016 10:06:45 +0000

Download as text
1
2
3
4
5
6
7
8
9
cleanup()
{
    # get exist status
    [ $? != "0" ] && STATUS="failed:" || STATUS="succeeded" exit 0

	echo "$(basename $0) $STATUS $ERROR"
}

trap cleanup EXIT INT QUIT ILL KILL SEGV TERM
Download as text