OSDN Git Service

[fix] : Fixed SC2002 (make_syslinux)
authorhayao <hayao@fascode.net>
Fri, 18 Jun 2021 14:13:52 +0000 (23:13 +0900)
committerhayao <hayao@fascode.net>
Fri, 18 Jun 2021 14:13:52 +0000 (23:13 +0900)
build.sh

index d63efc8..1abff6d 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -779,7 +779,7 @@ make_syslinux() {
     local _remove_config
     function _remove_config() {
         remove "${isofs_dir}/syslinux/${1}"
-        sed -i "s|$(cat "${isofs_dir}/syslinux/archiso_sys_load.cfg" | grep "${1}")||g" "${isofs_dir}/syslinux/archiso_sys_load.cfg" 
+        sed -i "s|$(grep "${1}" "${isofs_dir}/syslinux/archiso_sys_load.cfg")||g" "${isofs_dir}/syslinux/archiso_sys_load.cfg" 
     }
 
     [[ "${norescue_entry}" = true  ]] && _remove_config archiso_sys_rescue.cfg