From d0377b66378da2660b1d015fda9d968e686d2f6e Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Fri, 12 Jun 2015 10:58:30 -0400 Subject: [PATCH] fix: cleanup the lttngtop-live-simple traces Signed-off-by: Julien Desfossez --- utils/lttngtop-live-simple.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/lttngtop-live-simple.sh b/utils/lttngtop-live-simple.sh index 6d1f6ed..d4de83f 100755 --- a/utils/lttngtop-live-simple.sh +++ b/utils/lttngtop-live-simple.sh @@ -64,6 +64,6 @@ lttngtop -r $(echo $s|cut -d' ' -f1) lttng destroy $SESSION_NAME >/dev/null echo -n "Destroy $HOME/lttng-traces/$HOSTNAME/${SESSION_NAME}* (Y/n) ? " read a -if test $a = 'y' -o $a = 'Y'; then +if test -z "$a" -o "$a" = 'y' -o "$a" = 'Y'; then rm -rf $HOME/lttng-traces/$HOSTNAME/${SESSION_NAME}* fi -- 2.34.1