From 032bba6ee526d6a04d61047504b62df4ea1f8561 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 14 May 2023 21:12:24 +0000 Subject: [PATCH] fix: sed edit in place --- distro/debian/debian.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index a7e931f..58e6e46 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -208,7 +208,10 @@ func ContainerCommands(km config.KernelMask) (commands []string) { cmdf("echo '%s' >> /etc/apt/sources.list", repo) } } else { - cmdf("sed -e '/snapshot/!d' -e 's/# deb/deb [check-valid-until=no trusted=yes]/' /etc/apt/sources.list") + cmdf("sed -i " + + "-e '/snapshot/!d' " + + "-e 's/# deb/deb [check-valid-until=no trusted=yes]/' " + + "/etc/apt/sources.list") } cmdf("apt-get update")