diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-17 11:53:39 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-17 11:53:39 +0200 |
commit | 8a6bd26c6ecc6e3cd7a5ca444e814eaefede7226 (patch) | |
tree | 9d398398c23adf2ab1b87d9d20f8024ad3a51c08 /lbu.in | |
parent | 5527e24de2fbc82fd84be8370ea4112623a2c472 (diff) | |
download | alpine-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.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" \ |