File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -224,11 +224,9 @@ load_config() {
224224
225225# Display channel list
226226show_channel_list () {
227- if [[ " ${nochkver} " = true ]]; then
228- bash " ${tools_dir} /channel.sh" -v " ${alteriso_version} " -n show
229- else
230- bash " ${tools_dir} /channel.sh" -v " ${alteriso_version} " show
231- fi
227+ local _args=(" -v" " ${alteriso_version} " show)
228+ [[ " ${nochkver} " = true ]] && _args+=(" -n" )
229+ bash " ${tools_dir} /channel.sh" " ${_args[@]} "
232230}
233231
234232# Execute command for each module. It will be executed with {} replaced with the module name.
@@ -241,11 +239,9 @@ for_module(){
241239# pacstrapを実行
242240_pacstrap (){
243241 msg_info " Installing packages to ${airootfs_dir} /'..."
244- if [[ " ${pacman_debug} " = true ]]; then
245- pacstrap -C " ${build_dir} /pacman.conf" -c -G -M -- " ${airootfs_dir} " --debug " ${@ } "
246- else
247- pacstrap -C " ${build_dir} /pacman.conf" -c -G -M -- " ${airootfs_dir} " " ${@ } "
248- fi
242+ local _args=(" -c" " -G" " -M" " --" " ${airootfs_dir} " " ${@ } " )
243+ [[ " ${pacman_debug} " = true ]] && _args+=(--debug)
244+ pacstrap -C " ${build_dir} /pacman.conf" " ${_args[@]} "
249245 msg_info " Packages installed successfully!"
250246}
251247
You can’t perform that action at this time.
0 commit comments