#!/bin/bash # message librairy example source ../message.sh EXIT_ON_ERROR=1 debug "This message wille not be displayed because debug is not activated" msg "\n**__welcome to message lib example__**\n" msg "red" "\nMessages " msg "green" "can " msg "yellow" "be " msg "blue" "colored" msg " **bold** and __underline__ \n\n" warning "Text with **a warning**" msg "and when DEBUG=1\n" DEBUG=1 debug "with debug message" error "Or a **real** and __serious__ error that exit script when EXIT_ON_ERROR=1"