From 5e268c11ebff2512153113b9a4367af59b9986b7 Mon Sep 17 00:00:00 2001 From: fwcd Date: Sun, 19 Nov 2023 01:10:30 +0000 Subject: [PATCH] Fix quotes --- scripts/install-ubuntu-deps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-ubuntu-deps b/scripts/install-ubuntu-deps index 7ca37ed..d2fedf4 100755 --- a/scripts/install-ubuntu-deps +++ b/scripts/install-ubuntu-deps @@ -67,7 +67,7 @@ if [[ -n "$host" && -n "$target" && "$host" != "$target" ]]; then echo "==> Adding target mirror to APT sources..." ubuntu_version="$(cat /etc/os-release | grep VERSION_CODENAME | cut -d '=' -f 2-)" sudo sed -i "s/deb \([a-z]\)/deb [arch=$host_deb_arch] \1/" /etc/apt/sources.list - sudo bash -c "{ for repo_suffix in '' '-updates'; do echo 'deb [arch=$target_deb_arch] $target_mirror $ubuntu_version\$repo_suffix main multiverse universe'; done; cat /etc/apt/sources.list; } > /etc/apt/sources.list.new" + sudo bash -c "{ for repo_suffix in '' '-updates'; do echo \"deb [arch=$target_deb_arch] $target_mirror $ubuntu_version\$repo_suffix main multiverse universe\"; done; cat /etc/apt/sources.list; } > /etc/apt/sources.list.new" sudo mv /etc/apt/sources.list{.new,} cat /etc/apt/sources.list