Skip to content

Commit

Permalink
Merge pull request #3 from bp85/0.1.4
Browse files Browse the repository at this point in the history
add global replace for sed
  • Loading branch information
bp85 authored Dec 20, 2018
2 parents d0d3699 + b435573 commit 6408ebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bp85-mirror_repos",
"version": "0.1.3",
"version": "0.1.4",
"author": "bp85",
"summary": "Mirror yum repositories to local + and create yum repos from those",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/update-repos.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ for OS in ${OSES[@]}; do
[ $REPOS ] && REPOS_<%= os.split('-').join('_') %>=( $(echo "$REPOS" |sed 's/,/ /g') )
[ ${REPOS_<%= os.split('-').join('_') %>} ] || REPOS_<%= os.split('-').join('_') %>=( <%= scope.lookupvar('mirror_repos::repos')[os].keys.join(" ") %> )
<% end -%>
OS=$(echo $OS | sed 's/-/_/')
OS=$(echo $OS | sed 's/-/_/g')
#now define a new array, because substrings won't perform well in for loop
REPOS_OS=$(eval echo \${REPOS_${OS}[*]})
if [ ${VERBOSE} == 'False' ]; then
Expand Down

0 comments on commit 6408ebf

Please sign in to comment.