diff --git a/check_webservice_load.sh b/check_webservice_load.sh index 8346b58..afdedce 100755 --- a/check_webservice_load.sh +++ b/check_webservice_load.sh @@ -2264,7 +2264,7 @@ if $check_website ; then # - Clean up cache/session files.. # - - if $include_cleanup_function ; then + if $include_cleanup_function && [[ -n "$(trim $cleanup_function)" ]] ; then info "Execute configured cleanup tasks.." echo -e "\n\t[ Info ]: Execute configured cleanup tasks .." >> $LOCK_DIR/extra_msg.txt