Skip to content

Better handle the output

Check the output of each function and wrap the messages in helpers, where possible, e.g.,:

#######################################
# Displays an error message and redirects it to stderr.
# Globals:
#   None
# Arguments:
#   Error message
#######################################
err() {
  echo -e "${ORANGE}[ERR]${NC} [$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
}