Skip to content

Commit

Permalink
fix: use read -ra to split package list
Browse files Browse the repository at this point in the history
  • Loading branch information
tjallingt committed Aug 14, 2024
1 parent a1a4e0b commit cedea67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ register_binfmt() {
}

setup_linux_host() {
apt_packages=($packages)
apt_packages=()
IFS=" " read -r -a apt_packages <<<"${packages}"
if [[ "${host}" == "${target}" ]]; then
# TODO: can we reduce the setup time by providing an option to skip installing packages for C++?
# TODO: other lang? https://packages.ubuntu.com/search?lang=en&suite=jammy&arch=any&searchon=names&keywords=12-aarch64-linux-gnu
Expand Down

0 comments on commit cedea67

Please sign in to comment.