Enable "set -euo pipefail" in all bash scripts.

This enables "set -e", "set -u", and "set -o pipefail", which
catch common errors.
This commit is contained in:
Dan Gohman
2018-02-27 15:32:21 -08:00
parent 6a962e8b2c
commit d394ae0902
5 changed files with 6 additions and 9 deletions

View File

@@ -1,10 +1,8 @@
#!/bin/bash
set -euo pipefail
# Format all sources using rustfmt.
# Exit immediately on errors.
set -e
cd $(dirname "$0")
# Make sure we can find rustfmt.