From 84c5482ded2fa9f6eda41149f550c4522590c6a4 Mon Sep 17 00:00:00 2001 From: Haowen Liu Date: Mon, 2 May 2022 21:39:52 -0700 Subject: [PATCH] ubuntu: fix multiple repositories --- images/ubuntu/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/ubuntu/functions b/images/ubuntu/functions index e4be1e4..867caf7 100644 --- a/images/ubuntu/functions +++ b/images/ubuntu/functions @@ -55,9 +55,9 @@ add_repository() { --output /etc/apt/trusted.gpg.d/$key.gpg \ --export $key fi - printf 'deb %s %s %s' "$repo" "$distro" "$cmpnt" \ + printf 'deb %s %s %s\n' "$repo" "$distro" "$cmpnt" \ | guest_ssh -p $port build@localhost sudo tee -a /etc/apt/sources.list - printf 'deb-src %s %s %s' "$repo" "$distro" "$cmpnt" \ + printf 'deb-src %s %s %s\n' "$repo" "$distro" "$cmpnt" \ | guest_ssh -p $port build@localhost sudo tee -a /etc/apt/sources.list guest_ssh -p "$port" build@localhost sudo apt-get update } -- 2.38.5