1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Subject: add set -eu to catch errors early
From: Johannes Schauer Marin Rodrigues <josch@debian.org>
--- a/build/build.sh
+++ b/build/build.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+set -eu
+
source build/env.sh
if [[ "$OSTYPE" == "darwin"* ]]; then
--- a/build/fly.sh
+++ b/build/fly.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+set -eu
+
# Welcome to the Phoenix Unified build script!
# This script should be ran from inside the directory where you store Phoenix, not directly from the 'archives' or `build` folder...
--- a/build/gen_archive.sh
+++ b/build/gen_archive.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+set -eu
+
# This is a basic script used to create the .zip files you see in the 'archives' directory.
# We could just clone the entire source code - though lots of of it are completely unnecessary for packaging.
# This creates a slim .zip file only containing what we actually need.
|