Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
demos/base*.sh: don't insmod loop when it is not used
[fs/lustre-release.git]
/
lustre
/
demos
/
baseclean.sh
diff --git
a/lustre/demos/baseclean.sh
b/lustre/demos/baseclean.sh
index
abe4d73
..
342599f
100755
(executable)
--- 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