[lxc-devel] [PATCH] lxc-alpine: avoid GNU BRE extensions for better portability
Kaarle Ritvanen
kaarle.ritvanen at datakunkku.fi
Mon Sep 28 11:49:14 UTC 2015
Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen at datakunkku.fi>
---
templates/lxc-alpine.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
index 6dcc51b..d62f891 100644
--- a/templates/lxc-alpine.in
+++ b/templates/lxc-alpine.in
@@ -109,7 +109,7 @@ install_alpine() {
else
cp /etc/apk/repositories "$rootfs"/etc/apk/repositories || return 1
if [ -n "$release" ]; then
- sed -i -e "s:/[^/]\+/\([^/]\+\)$:/$release/\1:" \
+ sed -E -i "s:/[^/]+/([^/]+)$:/$release/\\1:" \
"$rootfs"/etc/apk/repositories
fi
fi
--
2.1.0
More information about the lxc-devel
mailing list