Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # 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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement