1
0

fix: sed edit in place

This commit is contained in:
dump_stack() 2023-05-14 21:12:24 +00:00
parent 23a28f33d4
commit 032bba6ee5
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -208,7 +208,10 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
cmdf("echo '%s' >> /etc/apt/sources.list", repo) cmdf("echo '%s' >> /etc/apt/sources.list", repo)
} }
} else { } 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") cmdf("apt-get update")