Skip to content

Instantly share code, notes, and snippets.

@timofurrer
Created August 20, 2013 09:31
Show Gist options
  • Save timofurrer/6279323 to your computer and use it in GitHub Desktop.
Save timofurrer/6279323 to your computer and use it in GitHub Desktop.
__return_value()
{
ret=$?
if [[ "$ret" -ne "0" ]]; then
echo -e "\033[1;31m[Error: \033[0;31m$ret\033[1;31m]\033[00m "
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment