Skip to content

Commit c8be85c

Browse files
committed
[fix] : Quart the string
1 parent a315b79 commit c8be85c

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

tools/fullbuild.sh

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ msg_error() {
5454

5555

5656
trap_exit() {
57-
local status=${?}
57+
local status="${?}"
5858
echo
5959
msg_error "fullbuild.sh has been killed by the user."
60-
exit ${status}
60+
exit "${status}"
6161
}
6262

6363

@@ -135,7 +135,7 @@ eval set -- "${OPT}"
135135
unset OPT OPTS OPTL ARGUMENT
136136

137137
while true; do
138-
case ${1} in
138+
case "${1}" in
139139
-a)
140140
share_options+=(${2})
141141
shift 2
@@ -214,7 +214,7 @@ if [[ "${all_channel}" = true ]]; then
214214
channnels=($("${script_path}/tools/channel.sh" -b show))
215215
fi
216216
elif [[ -n "${*}" ]]; then
217-
channnels=(${@})
217+
channnels=("${@}")
218218
fi
219219

220220
if [[ "${simulation}" = true ]]; then
@@ -249,16 +249,11 @@ fi
249249

250250
trap 'trap_exit' 1 2 3 15
251251

252-
if [[ "${simulation}" = false ]]; then
253-
msg_info "Update the package database."
254-
sudo pacman -Syy
255-
fi
256-
257-
for arch in ${architectures[@]}; do
258-
for cha in ${channnels[@]}; do
259-
for lang in ${locale_list[@]}; do
260-
for retry_count in $(seq 1 ${retry}); do
261-
if [[ -n $(cat "${script_path}/channels/${cha}/architecture" | grep -h -v ^'#' | grep -x "${arch}") ]]; then
252+
for arch in "${architectures[@]}"; do
253+
for cha in "${channnels[@]}"; do
254+
for lang in "${locale_list[@]}"; do
255+
for retry_count in $(seq 1 "${retry}"); do
256+
if [[ -n "$(cat "${script_path}/channels/${cha}/architecture" | grep -h -v ^'#' | grep -x "${arch}")" ]]; then
262257
build
263258
fi
264259
done

0 commit comments

Comments
 (0)