From 2d9120779ca74776913e25b00e5e94ceed4df6b3 Mon Sep 17 00:00:00 2001 From: Tjalling Tolle Date: Wed, 14 Aug 2024 14:39:23 +0200 Subject: [PATCH] fix: use read -ra to split package list --- main.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 997371f..9619f60 100755 --- a/main.sh +++ b/main.sh @@ -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