OSDN Git Service

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

index 328fa11..1e9d0d4 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を実行