Resolve issue with script accidentally detecting unmounted image as mounted
This commit is contained in:
parent
7860960a40
commit
ea1f82fd16
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ for image in "${imageFiles[@]}"; do
|
|||
# Check if there's already an image mounted at the destination
|
||||
#shellcheck disable=SC2006
|
||||
fullPathMountDir="`cd "$mountDirName" && pwd`"
|
||||
if grep "^fuseiso $fullPathMountDir" /proc/mounts >/dev/null 2>&1; then
|
||||
if grep "^fuseiso $fullPathMountDir " /proc/mounts >/dev/null 2>&1; then
|
||||
echo "Something is already mounted to $mountDirName. Skipping"
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue