summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/cd_tester.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/cd_tester.sh b/bin/cd_tester.sh
index f57189e6..d950f747 100755
--- a/bin/cd_tester.sh
+++ b/bin/cd_tester.sh
@@ -142,6 +142,8 @@ if [ ! -z $IMAGE ] ; then
curl $URL > $IMAGE
fi
sudo mkdir -p $IMAGE_MNT
+ mount | grep -v grep | grep $IMAGE_MNT && sudo umount -l $IMAGE_MNT
+ sleep 1
sudo mount -o loop,ro $IMAGE $IMAGE_MNT
else
#