This is an automated email from the ASF dual-hosted git repository.
rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new dfb32f8 Check exit codes for each line and add an error trap (#4593)
dfb32f8 is described below
commit dfb32f81bb5788ee9abc3423b1686cf4df8454bf
Author: Zach Hoffman <[email protected]>
AuthorDate: Thu Apr 2 16:27:30 2020 -0600
Check exit codes for each line and add an error trap (#4593)
---
traffic_ops/install/bin/install_goose.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/traffic_ops/install/bin/install_goose.sh
b/traffic_ops/install/bin/install_goose.sh
index 66fd6a8..4080fcc 100755
--- a/traffic_ops/install/bin/install_goose.sh
+++ b/traffic_ops/install/bin/install_goose.sh
@@ -14,6 +14,8 @@
# limitations under the License.
#
+trap "echo Error on line ${LINENO} of '$0'; exit 1" ERR
+set -o errexit -o nounset
echo "Now installing goose"
export GOPATH=/opt/traffic_ops/go
mkdir -p $GOPATH