From 18426775b9d5a60a6cefe6c986b4cf5b03503ec1 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 16 May 2023 19:20:58 +0000 Subject: [PATCH] fix: deb packages install command --- distro/debian/debian.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index 0f92906..ae830ff 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -216,7 +216,7 @@ func ContainerCommands(km config.KernelMask) (commands []string) { "/etc/apt/sources.list") } - cmdf("{ apt-get update || apt-get update || apt-get update }") + cmdf("apt-get update || apt-get update || apt-get update") packages := "wget build-essential libelf-dev git kmod linux-base " packages += "initramfs-tools " @@ -230,9 +230,9 @@ func ContainerCommands(km config.KernelMask) (commands []string) { packages += "module-init-tools " } - cmdf("{ apt-get install -y %s "+ + cmdf("apt-get install -y %s "+ "|| apt-get install -y %s "+ - "|| apt-get install -y %s }", packages, packages, packages) + "|| apt-get install -y %s", packages, packages, packages) cmdf("mkdir -p /lib/modules")