Skip to content
Snippets Groups Projects
Commit 7f069ace authored by User expired's avatar User expired
Browse files

whitespace formatting

parent c7d507f6
No related branches found
No related tags found
No related merge requests found
Pipeline #
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)
......
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment