From 7c972102d9147d97d31fdbeb324d35a81a70e30a Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Fri, 4 Jul 2014 14:18:05 +0530 Subject: [PATCH] Fixed Don't display empty messages in ee debug tail -f command --- bin/easyengine | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/easyengine b/bin/easyengine index 4003b670..193dc8fd 100644 --- a/bin/easyengine +++ b/bin/easyengine @@ -523,9 +523,13 @@ elif [ "$EE_FIRST" = "debug" ]; then # Debug stop on CTRL+C trap "ee_mod_debug_stop" EXIT - tail -f $EE_DEBUG_MSG + if [ ! -z $EE_DEBUG_MSG ]; then + tail -f $EE_DEBUG_MSG + fi elif [ "$EE_DEBUG_INTERACTIVE" != "-i" ] && [ "$EE_DEBUG" != "--stop" ]; then - ee_lib_echo_info "tail -f $EE_DEBUG_MSG" + if [ ! -z $EE_DEBUG_MSG ]; then + ee_lib_echo_info "tail -f $EE_DEBUG_MSG" + fi fi fi