From: Julien Desfossez Date: Fri, 12 Jun 2015 14:58:30 +0000 (-0400) Subject: fix: cleanup the lttngtop-live-simple traces X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d0377b66378da2660b1d015fda9d968e686d2f6e;p=lttngtop.git fix: cleanup the lttngtop-live-simple traces Signed-off-by: Julien Desfossez --- 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