VirtualBox shared folders: adjust check for detecting shared folder
[grml-autoconfig.git] / autoconfig.functions
index 883231b..bf5f52e 100755 (executable)
@@ -1882,7 +1882,7 @@ if $VIRTUALBOX ; then
         vbautomation="$(getbootparam 'vbautomation' 2>>$DEBUG)"
       fi
 
-      if ! VBoxControl sharedfolder list | egrep -q "^[0-9]+ - ${vbautomation}$" ; then
+      if ! VBoxControl sharedfolder list | egrep -q "^[0-9]+ - ${vbautomation}\s*" ; then
         ewarn "No automount shared folder '$vbautomation' available"
         eend 0
       else