File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -137,12 +137,16 @@ function get_config() {
137
137
#
138
138
# The result is a list of valid versions.
139
139
function get_versions() {
140
+ shift
141
+
140
142
local versions=()
141
- local dirs=()
143
+ local dirs=(" $@ " )
142
144
143
145
local default_variant
144
146
default_variant=$( get_config " ./" " default_variant" )
145
- IFS=' ' read -ra dirs <<< " $(echo " ./" */)"
147
+ if [ ${# dirs[@]} -eq 0 ]; then
148
+ IFS=' ' read -ra dirs <<< " $(echo " ./" */)"
149
+ fi
146
150
147
151
for dir in " ${dirs[@]} " ; do
148
152
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