-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_bootstrap.sh
More file actions
36 lines (28 loc) · 970 Bytes
/
_bootstrap.sh
File metadata and controls
36 lines (28 loc) · 970 Bytes
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
34
35
36
##############################################################################
#
# Copyright (c) 2017, 2degrees Limited.
# All Rights Reserved.
#
# This file is part of docker-dev
# <https://github.com/2degrees/docker-dev>, which is subject
# to the provisions of the BSD at
# <http://dev.2degreesnetwork.com/p/2degrees-license.html>. A copy of the
# license should accompany this distribution. THIS SOFTWARE IS PROVIDED "AS IS"
# AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT
# NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST
# INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
#
##############################################################################
set -o nounset
set -o errexit
set -o pipefail
# ===== Utilities
function echo_stderr() {
echo "$@" >&2
}
function error_out() {
local exit_code="$1"
local exit_message="$2"
echo_stderr "$exit_message"
return "$exit_code"
}