File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,8 @@ for version in "${versions[@]}"; do
31
31
tag=$( cat $version /Dockerfile | grep " ENV NODE_VERSION" | cut -d' ' -f3)
32
32
33
33
info " Building $tag ..."
34
- docker build -t node:$tag $version
35
34
36
- if [[ $? -gt 0 ]] ; then
35
+ if ! docker build -t node: $tag $version ; then
37
36
fatal " Build of $tag failed!"
38
37
else
39
38
info " Build of $tag succeeded."
@@ -53,9 +52,8 @@ for version in "${versions[@]}"; do
53
52
[ -f " $version /$variant /Dockerfile" ] || continue
54
53
55
54
info " Building $tag -$variant variant..."
56
- docker build -t node:$tag -$variant $version /$variant
57
55
58
- if [[ $? -gt 0 ]] ; then
56
+ if ! docker build -t node: $tag - $variant $version / $variant ; then
59
57
fatal " Build of $tag -$variant failed!"
60
58
else
61
59
info " Build of $tag -$variant succeeded."
You can’t perform that action at this time.
0 commit comments