Commit 8a6bd26c authored by Natanael Copa's avatar Natanael Copa

lbu: use ERE for sed regexp

the use of \+ is a GNU BRE extension that is not supported in musl.
parent 5527e24d
......@@ -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" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment