Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
b72e4335
Commit
b72e4335
authored
May 18, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: fix remove_bashism (add check for {,}
parent
4c91ff2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spec
share/eterbuild/functions/spec
+1
-1
No files found.
share/eterbuild/functions/spec
View file @
b72e4335
...
...
@@ -348,7 +348,7 @@ remove_bashism()
# {1,2} translation
# FIXME: miss first spaces
while
read
-r
n
;
do
echo
"
$n
"
|
grep
-v
"{.*}"
&&
continue
echo
"
$n
"
|
grep
-v
"{.*
,.*
}"
&&
continue
rs
=
"
$(
echo
"
$n
"
| perl
-pe
"s|.*
\s
(.*?{.*?}.*?)
\s
.*|
\1
|g"
)
"
res
=
$(
eval echo
"
$rs
"
)
echo
"
$n
"
| perl
-pe
"s|
$rs
|
$res
|g"
...
...
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