OSDN Git Service

[remove] : Remove extra code
authorhayao <shun819.mail@gmail.com>
Sat, 21 Nov 2020 00:17:25 +0000 (09:17 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 21 Nov 2020 00:17:45 +0000 (09:17 +0900)
build.sh

index f0bbe0a..0a21f60 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -137,7 +137,6 @@ run_cmd() {
     local mount
 
     for mount in "dev" "dev/pts" "proc" "sys" ; do
-    #for mount in "dev" "dev/pts" "proc" "sys" ; do
         mount --bind /${mount} "${work_dir}/airootfs/${mount}"
     done
     
@@ -163,9 +162,8 @@ _dnf_install() {
 # If the file does not exist, skip it.
 # remove <file> <file> ...
 remove() {
-    local _list
+    local _list=($(echo "$@"))
     local _file
-    _list=($(echo "$@"))
 
     for _file in "${_list[@]}"; do
         _msg_debug "Removeing ${_file}"