Skip to content

Instantly share code, notes, and snippets.

@jourdanrodrigues
Created April 26, 2017 18:46
Show Gist options
  • Save jourdanrodrigues/77a19cd368a1363a5fae23c97f652957 to your computer and use it in GitHub Desktop.
Save jourdanrodrigues/77a19cd368a1363a5fae23c97f652957 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
NC='\033[0m'
ERROR='\033[0;31m'
SUCCESS='\033[0;32m'
SECTION='\033[1;33m'
function space () {
echo ""
printf "${1}${NC}\n"
echo ""
}
function section () {
space "${SECTION}-----> ${1}"
}
function success () {
space "${SUCCESS}${1}"
}
function check_error () {
if [ $1 -ne 0 ]; then
space "${ERROR}Something went wrong"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment