fix: cleanup the lttngtop-live-simple traces
[lttngtop.git] / utils / lttngtop-live-simple.sh
index 6d1f6edc6f44df01be01c42967c0ab8b9597e68a..d4de83f72b9ca920ad82e0da428ea914b1b955c3 100755 (executable)
@@ -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
This page took 0.029301 seconds and 4 git commands to generate.