diff --git a/cd-mount.sh b/cd-mount.sh index ba731f4..5044222 100755 --- a/cd-mount.sh +++ b/cd-mount.sh @@ -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