Skip to content

Commit c8a3729

Browse files
author
Greg Bowler
committed
Check exit code directly
1 parent f004fed commit c8a3729

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

php-build.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,9 @@ echo "$docker_tag" > ./docker_tag
8888
# been pushed previously, this image should take preference and a new image
8989
# will not need to be built.
9090
echo "Pulling $docker_tag"
91-
docker pull "$docker_tag"
9291

9392
# No need to continue building the image if the pull was successful.
94-
if [ $? -eq 0 ]
93+
if docker pull "$docker_tag";
9594
then
9695
exit
9796
fi

0 commit comments

Comments
 (0)