fix: sed edit in place
This commit is contained in:
parent
23a28f33d4
commit
032bba6ee5
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user