################################################################################ # Function: echo_if_verbose # Description: Prints $@ if IS_VERBOSE is not empty # Arguments: $@ :- Content to echo if ${IS_VERBOSE} is not empty # Requires: ${IS_VERBOSE} set to a non-empty string if verbose is on # Outputs: Prints $@ if ${IS_VERBOSE} is not empty function echo_if_verbose { if [ -n "${IS_VERBOSE}" ]; then echo "$@" fi }