fix: cleanup the lttngtop-live-simple traces
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 12 Jun 2015 14:58:30 +0000 (10:58 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Fri, 12 Jun 2015 14:58:30 +0000 (10:58 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
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.024761 seconds and 4 git commands to generate.