Skip to content

Commit 9032dd0

Browse files
committed
[fix] : Fixed SC2206
1 parent 4927c33 commit 9032dd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ check_bool() {
316316
}
317317

318318
_run_cleansh(){
319-
bash $([[ "${bash_debug}" = true ]] && echo -n "-x" ) "${tools_dir}/clean.sh" -o -w "$(realpath "${build_dir}")" "$([[ "${debug}" = true ]] && printf "%s" "-d")" "$([[ "${noconfirm}" = true ]] && printf "%s" "-n")" "$([[ "${nocolor}" = true ]] && printf "%s" "--nocolor")"
319+
bash "$([[ "${bash_debug}" = true ]] && echo -n "-x" || echo -n "+x")" "${tools_dir}/clean.sh" -o -w "$(realpath "${build_dir}")" "$([[ "${debug}" = true ]] && printf "%s" "-d")" "$([[ "${noconfirm}" = true ]] && printf "%s" "-n")" "$([[ "${nocolor}" = true ]] && printf "%s" "--nocolor")"
320320
}
321321

322322

@@ -1125,7 +1125,7 @@ while true; do
11251125
if [[ "${2}" = "reset" ]]; then
11261126
sfs_comp_opt=()
11271127
else
1128-
sfs_comp_opt=(${2})
1128+
IFS=" " read -r -a sfs_comp_opt <<< "${2}"
11291129
fi
11301130
shift 2
11311131
;;
@@ -1242,7 +1242,7 @@ while true; do
12421242
shift 2
12431243
;;
12441244
--tar-opts)
1245-
tar_comp_opt=(${2})
1245+
IFS=" " read -r -a tar_comp_opt <<< "${2}"
12461246
shift 2
12471247
;;
12481248
--)

0 commit comments

Comments
 (0)