瀏覽代碼

installer: quote a variable to avoid an error while unmounting target filesystems.

Juan RP 12 年之前
父節點
當前提交
cb1b9f3ca9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      installer.sh.in

+ 1 - 1
installer.sh.in

@@ -679,7 +679,7 @@ umount_filesystems() {
         echo "Unmounting $TARGETDIR/$f..." >$LOG
         echo "Unmounting $TARGETDIR/$f..." >$LOG
         umount $TARGETDIR/$f >$LOG 2>&1
         umount $TARGETDIR/$f >$LOG 2>&1
     done
     done
-    local mnts=$(grep -E '^MOUNTPOINT.*$' $CONF_FILE)
+    local mnts="$(grep -E '^MOUNTPOINT.*$' $CONF_FILE)"
     set -- ${mnts}
     set -- ${mnts}
     while [ $# -ne 0 ]; do
     while [ $# -ne 0 ]; do
         local dev=$2; local fstype=$3; local mntpt=$5
         local dev=$2; local fstype=$3; local mntpt=$5