Whamcloud - gitweb
* demos/snaprest.sh: ensure client is disconnected after snaprestore
[fs/lustre-release.git] / lustre / demos / baseclean.sh
index fc6a871..f7ad227 100755 (executable)
@@ -26,5 +26,9 @@ fi
 [ "$LOOPDEV" ] && losetup -d $LOOPDEV
 rmmod loop > /dev/null 2>&1
 
-# [ "$TMPFILE" -a -f "$TMPFILE" ] && rm $TMPFILE
+if [ "$TMPFILE" -a -f "$TMPFILE" ]; then
+    echo -n "Remove $TMPFILE [N/y]? "
+    read ANS
+    [ "`echo $ANS | cut -c1 | tr A-Z a-z`" = "y" ] && rm $TMPFILE
+fi