OSDN Git Service

[fix] : Fixed SC2001 (for_module)
authorhayao <hayao@fascode.net>
Sat, 19 Jun 2021 02:07:01 +0000 (11:07 +0900)
committerhayao <hayao@fascode.net>
Sat, 19 Jun 2021 02:07:01 +0000 (11:07 +0900)
build.sh

index fa739b9..9e05487 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -227,7 +227,7 @@ show_channel_list() {
 # for_module <command>
 for_module(){
     local module
-    for module in "${modules[@]}"; do eval "$(echo "${@}" | sed "s|{}|${module}|g")"; done
+    for module in "${modules[@]}"; do eval "${@//"{}"/${module}}"; done
 }
 
 # pacstrapを実行