#!/bin/sh appname=$(basename $0) TMPFILE=$(mktemp /tmp/${appname}.XXXXXX) || exit 1 mkdir /usr error=$? if [ $error -ne 0 ] ; then echo "mkdir /usr failed: we have an exit code of $error" exit $error fi # Released under GNU General Public License 3 by celeste:crystalfaery 2011-02-07 00:33:18+00:00 # http://www.crystalfaeries.net/linux/bin/error_handling.sh