Skip to content

Commit cdd17cc

Browse files
committed
[update] : Improved help processing
1 parent f455f72 commit cdd17cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ _usage () {
150150

151151
for _type in "locale" "kernel"; do
152152
echo " ${_type} for each architecture:"
153-
for _list in ${script_path}/system/${_type}-* ; do
154-
_arch="${_list#${script_path}/system/${_type}-}"
153+
for _arch in $(find "${script_path}/system/" -maxdepth 1 -mindepth 1 -name "${_type}-*" -print0 | xargs -I{} -0 basename {} | sed "s|${_type}-||g"); do
155154
echo -n " ${_arch}$(echo_blank "$(( "${blank}" - 4 - "${#_arch}" ))")"
156155
"${tools_dir}/${_type}.sh" -a "${_arch}" show
157156
done
@@ -160,8 +159,7 @@ _usage () {
160159

161160
echo " Channel:"
162161
for _dirname in $(bash "${tools_dir}/channel.sh" --version "${alteriso_version}" -d -b -n show); do
163-
echo -ne " ${_dirname%.add}"
164-
echo_blank "$(( "${blank}" - 3 - "$(echo "${_dirname%.add}" | wc -m)" ))"
162+
echo -ne " ${_dirname%.add}$(echo_blank "$(( "${blank}" - 3 - "$(echo "${_dirname%.add}" | wc -m)" ))")"
165163
"${tools_dir}/channel.sh" --version "${alteriso_version}" --nocheck desc "${_dirname%.add}"
166164
done
167165

0 commit comments

Comments
 (0)