Skip to content
Snippets Groups Projects
Unverified Commit 8f0545c2 authored by Daniel's avatar Daniel
Browse files

MAINT: Earlier set -e, also documentation.

parent e68951af
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# Load setting from different files, in this order:
# - config.defaults
# - .config
# - The file given in ENV_FILE.
[[ -n "config.defaults" ]] && source "config.defaults" [[ -n "config.defaults" ]] && source "config.defaults"
[[ -n ".config" ]] && source ".config" [[ -n ".config" ]] && source ".config"
[[ -n "$ENV_FILE" ]] && source "$ENV_FILE" [[ -n "$ENV_FILE" ]] && source "$ENV_FILE"
......
...@@ -29,11 +29,11 @@ if [ -z "$UTILSPATH" ]; then ...@@ -29,11 +29,11 @@ if [ -z "$UTILSPATH" ]; then
export UTILSPATH export UTILSPATH
fi fi
set -e
source $UTILSPATH/load_settings.sh source $UTILSPATH/load_settings.sh
source $UTILSPATH/helpers.sh source $UTILSPATH/helpers.sh
set -e
function fail() { function fail() {
echo "Some error occured, exiting." echo "Some error occured, exiting."
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment