Skip to content

Commit cf3021e

Browse files
committed
Add the set -e option to dockerfiles/build.sh
1 parent 5ed5912 commit cf3021e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dockerfiles/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ HOST_PORT="YOUR_HOST_PORT" # The port on host, which will be redirected t
1010
# apt source, you can select 'nchc'(mirror in Taiwan) or 'aliyun'(best for mainlance China users) according to your network, if you could connect to the official unbunt mirror in a fast speed, just leave it to "".
1111
APT_SOURCE=""
1212

13+
# fail immediately if anything goes wrong
14+
set -e
15+
1316
DOCKER_BIN=$(which docker.io || which docker)
1417
if [ -z "$DOCKER_BIN" ] ; then
1518
echo "Please install docker. You can install docker by running \"wget -qO- https://get.docker.io/ | sh\"."

0 commit comments

Comments
 (0)