From 7f069aceee022feba94648b7cf23c81bf5d2c387 Mon Sep 17 00:00:00 2001 From: Nikolaus Krismer <nikolaus.krismer@uibk.ac.at> Date: Sat, 13 Aug 2016 16:38:53 +0200 Subject: [PATCH] whitespace formatting --- CHANGELOG.md | 1 + bootstrap/config.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e06b12d..6aadb89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ Upcoming version: ----------------- + - whitespace formatting (Nikolaus Krismer) - updated gradle plugins (Nikolaus Krismer) - version update to latest geoserver binary (Nikolaus Krismer) - got rid of repoforge/rpmforge. cmake is not needed anymore (no pgrouting is used anymore). version udpates (Nikolaus Krismer) diff --git a/bootstrap/config.sh b/bootstrap/config.sh index 1b8db42..fc02f3f 100755 --- a/bootstrap/config.sh +++ b/bootstrap/config.sh @@ -79,7 +79,7 @@ function fn_arg2boolean() { local OUTVAR="${1}" local ARG="${2}" local VALUE="${3}" # Default value - + if [ -n "$ARG" ]; then if [ "$ARG" == "true" ]; then VALUE=true @@ -116,7 +116,7 @@ function fn_check_status { message="An error occurred. The process will exit now with status $status" fi - fn_echo "${message}" "ERROR" + fn_echo "${message}" "ERROR" exit $status fi } @@ -157,9 +157,9 @@ function fn_echo() { if ${USE_TIMINGS}; then TIME=$(date +"%T.%N") - MESSAGE="[${TIME}] ${MESSAGE}" + MESSAGE="[${TIME}] ${MESSAGE}" fi - + if ${USE_COLOR} ; then case "${LEVEL,,}" in "debug") COLOR="\e[34m" ;; # Blue @@ -167,11 +167,11 @@ function fn_echo() { "warn") COLOR="\e[93m" ;; # light yellow *) COLOR="\e[92m" ;; # light green (on level=info, no level set or invalid level given) esac - + if [ "${LEVEL,,}" = "debug" ] && ! ${VERBOSE}; then return 0 fi - + echo -e "${COLOR}${MESSAGE}${DEFAULT_COLOR}" else echo "${MESSAGE}" -- GitLab