File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ export default async function(github) {
87
87
} else {
88
88
const newVersions = await checkForMuslVersionsAndSecurityReleases ( github , versions ) ;
89
89
let updatedVersions = [ ] ;
90
- for ( let version of Object . keys ( newVersions ) ) {
91
- if ( newVersions [ version ] . muslBuildExists ) {
92
- const { stdout } = await exec ( `./update.sh ${ newVersions [ version ] . isSecurityRelease ? "-s " : "" } ${ version } ` ) ;
90
+ for ( const [ version , newVersion ] of Object . entries ( newVersions ) ) {
91
+ if ( newVersion . muslBuildExists ) {
92
+ const { stdout } = await exec ( `./update.sh ${ newVersion . isSecurityRelease ? "-s " : "" } ${ version } ` ) ;
93
93
console . log ( stdout ) ;
94
- updatedVersions . push ( newVersions [ version ] . fullVersion ) ;
94
+ updatedVersions . push ( newVersion . fullVersion ) ;
95
95
} else {
96
- console . log ( `There's no musl build for version ${ newVersions [ version ] . fullVersion } yet.` ) ;
96
+ console . log ( `There's no musl build for version ${ newVersion . fullVersion } yet.` ) ;
97
97
process . exit ( 0 ) ;
98
98
}
99
99
}
Original file line number Diff line number Diff line change @@ -136,13 +136,18 @@ function get_config() {
136
136
# Get available versions for a given path
137
137
#
138
138
# The result is a list of valid versions.
139
+ # shellcheck disable=SC2120
139
140
function get_versions() {
141
+ shift
142
+
140
143
local versions=()
141
- local dirs=()
144
+ local dirs=(" $@ " )
142
145
143
146
local default_variant
144
147
default_variant=$( get_config " ./" " default_variant" )
145
- IFS=' ' read -ra dirs <<< " $(echo " ./" */)"
148
+ if [ ${# dirs[@]} -eq 0 ]; then
149
+ IFS=' ' read -ra dirs <<< " $(echo " ./" */)"
150
+ fi
146
151
147
152
for dir in " ${dirs[@]} " ; do
148
153
if [ -a " ${dir} /Dockerfile" ] || [ -a " ${dir} /${default_variant} /Dockerfile" ]; then
Original file line number Diff line number Diff line change @@ -189,6 +189,8 @@ function update_node_version() {
189
189
)
190
190
}
191
191
192
+ pids=()
193
+
192
194
for version in " ${versions[@]} " ; do
193
195
parentpath=$( dirname " ${version} " )
194
196
versionnum=$( basename " ${version} " )
@@ -201,8 +203,6 @@ for version in "${versions[@]}"; do
201
203
# See details in function.sh
202
204
IFS=' ' read -ra variants <<< " $(get_variants " ${parentpath} " )"
203
205
204
- pids=()
205
-
206
206
if [ -f " ${version} /Dockerfile" ]; then
207
207
if [ " ${update_version} " -eq 0 ]; then
208
208
update_node_version " ${baseuri} " " ${versionnum} " " ${parentpath} /Dockerfile.template" " ${version} /Dockerfile" &
You can’t perform that action at this time.
0 commit comments