Resolve issue with script accidentally detecting unmounted image as mounted

This commit is contained in:
Jonas Tobias Hopusch 2023-01-10 21:12:03 +01:00
parent 7860960a40
commit ea1f82fd16
Signed by: jotoho
GPG Key ID: 913BDF1196DCF600
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ for image in "${imageFiles[@]}"; do
# Check if there's already an image mounted at the destination # Check if there's already an image mounted at the destination
#shellcheck disable=SC2006 #shellcheck disable=SC2006
fullPathMountDir="`cd "$mountDirName" && pwd`" 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" echo "Something is already mounted to $mountDirName. Skipping"
continue continue
fi fi