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
A
atools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
Leo
atools
Commits
f3540c98
Commit
f3540c98
authored
Mar 05, 2020
by
Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apkbuild-lint: make removal of last match in grep for AL32 more robust
parent
d78bc43d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apkbuild-lint
apkbuild-lint
+1
-1
No files found.
apkbuild-lint
View file @
f3540c98
...
...
@@ -265,7 +265,7 @@ braced_variable() {
# match end-of-line or a character that can't be in the name of a variable
grep
-Eo
-Hn
-e
'\$\{[A-Za-z0-9_]+\}($|["\./\(\)= -])'
"
$apkbuild
"
|
sed
"s/^
\(
[^:]*:[^:]*:
\)\(
.*
\)
/MP:[AL32]:
\1
unnecesary usage of braces:
\2
/"
|
sed
's|
.
$||g'
# This strips the last match in the grep
sed
's|
[^}]
$||g'
# This strips the last match in the grep
}
cpan_variable
()
{
...
...
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