Skip to content

Commit

Permalink
Exit immediately if a command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed May 21, 2021
1 parent ef0ebc0 commit a69f4c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-static.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash -x

# This is a shell script to build a statically-linked mold
# executable using Docker, so that it is easy to build mold
# on non-Ubuntu 20.04 machines.
Expand All @@ -8,6 +7,8 @@
# Run `docker image rm mold-build-ubuntu20` to remove the image
# from disk.

set -e

cat <<EOF | docker build -t mold-build-ubuntu20 -
FROM ubuntu:20.04
RUN apt-get update && \
Expand Down

0 comments on commit a69f4c8

Please sign in to comment.