X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fdemos%2Fbaseclean.sh;fp=lustre%2Fdemos%2Fbaseclean.sh;h=342599f754ff45349a4f3b580f3f2f664affc045;hb=f64f0359c2968a68dac27e01ecaf1d39cc73a4f3;hp=abe4d734ff79b9dee715c371bf1c4c8d7a30dd0e;hpb=cca542d2fc35760f9c5e010fb7082d87e22a6536;p=fs%2Flustre-release.git diff --git a/lustre/demos/baseclean.sh b/lustre/demos/baseclean.sh index abe4d73..342599f 100755 --- a/lustre/demos/baseclean.sh +++ b/lustre/demos/baseclean.sh @@ -23,8 +23,10 @@ if [ x$? = x0 ]; then fi -[ "$LOOPDEV" ] && losetup -d $LOOPDEV -rmmod loop > /dev/null 2>&1 +if [ "$LOOPDEV" ]; then + losetup -d $LOOPDEV + rmmod loop > /dev/null 2>&1 +fi if [ "$TMPFILE" -a -f "$TMPFILE" ]; then rm -i $TMPFILE