if [ "$0" == "${BASH_SOURCE[0]}" ] ; then echo -e "\033[1;31m[ERROR] Using the shell \"source\" command to this script.\033[0m \033[0;33mexample: source ${BASH_SOURCE[0]}\033[0m"; else echo "NOT NULL" fi test "$BASH_SOURCE" = "" && echo "This script only can be run from bash" && return SCRIPT_SOURCE=$BASH_SOURCE test "$SCRIPT_SOURCE" = "$0" && echo "Script is being run, should be sourced" && exit 1