summaryrefslogtreecommitdiff
path: root/lbu.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-17 11:53:39 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-17 11:53:39 +0200
commit8a6bd26c6ecc6e3cd7a5ca444e814eaefede7226 (patch)
tree9d398398c23adf2ab1b87d9d20f8024ad3a51c08 /lbu.in
parent5527e24de2fbc82fd84be8370ea4112623a2c472 (diff)
downloadalpine-conf-8a6bd26c6ecc6e3cd7a5ca444e814eaefede7226.zip
lbu: use ERE for sed regexp
the use of \+ is a GNU BRE extension that is not supported in musl.
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbu.in b/lbu.in
index ad5dc87..52172c7 100644
--- a/lbu.in
+++ b/lbu.in
@@ -155,7 +155,7 @@ list_add() {
shift
mkdir -p "${LBU_LIST%/*}"
while [ $# -gt 0 ] ; do
- filename="$(echo "$1" | sed 's:^/\+::')"
+ filename="$(echo "$1" | sed -E 's:^/+::')"
if list_has "${prefix}${filename}"; then
vecho "$filename is already in $LBU_LIST."
else
@@ -173,7 +173,7 @@ list_delete() {
shift
[ -f "$LBU_LIST" ] || return 1
while [ $# -gt 0 ] ; do
- filename="$(echo "$1" | sed 's:^/\+::')"
+ filename="$(echo "$1" | sed -E 's:^/+::')"
if list_has "${prefix}${filename}"; then
vecho "Removing $filename from $LBU_LIST."
list_filter_out "${prefix}${filename}" > "$tmp" \