Fix sed usage for fall back to old behaviour in MBR handling
[grml-debootstrap.git] / grml-debootstrap
index 016e73d..5ca15e8 100755 (executable)
@@ -237,7 +237,7 @@ prompt_for_bootmanager()
         MBRDISK=$(readlink -f $MBRDISK)
      else
         # fall back to old behaviour
-        MBRDISK=$(echo ${TARGET} | sed -e 's/[0-9][0-9]*$/')
+        MBRDISK=$(echo ${TARGET} | sed -e 's/[0-9][0-9]*$//')
      fi
 
      MBRPART="MBR of $MBRDISK"