fix: cleanup the lttngtop-live-simple traces master
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 6d1f6ed..d4de83f 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.029709 seconds and 4 git commands to generate.