Created
April 26, 2017 18:46
-
-
Save jourdanrodrigues/77a19cd368a1363a5fae23c97f652957 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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