Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
8a6bd26c
Commit
8a6bd26c
authored
Jul 17, 2014
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lbu: use ERE for sed regexp
the use of \+ is a GNU BRE extension that is not supported in musl.
parent
5527e24d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lbu.in
lbu.in
+2
-2
No files found.
lbu.in
View file @
8a6bd26c
...
...
@@ -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"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment