From dcd1c661929218c9a6e05981ffbb8431b8114716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 15 Dec 2020 12:54:46 +0100 Subject: [PATCH] fix wrong space --- functions.sh | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/functions.sh b/functions.sh index 0e3f0ce..904a889 100755 --- a/functions.sh +++ b/functions.sh @@ -919,27 +919,27 @@ get_crtime() { } # jira-confluence-specific is temporary in here -function getdbcreds_jira () { - [ $# -eq 0 ] return 1 - - DB_FILE=$1 - - DB_URL="$(grep -oPm1 "(?<=)[^<]+" ${DB_FILE})" - DB_USER="$(grep -oPm1 "(?<=)[^<]+" ${DB_FILE})" - DB_PWD="$(grep -oPm1 "(?<=)[^<]+" ${DB_FILE})" - DB_HOST="$(echo $DB_URL|sed 's@^.*//@@;s@\(^.*):\(.*\)/\(.*\)$@\1@')" - DB_PORT="$(echo $DB_URL|sed 's@^.*//@@;s@\(^.*):\(.*\)/\(.*\)$@\2@')" - DB_NAME="$(echo $DB_URL|sed 's@^.*//@@;s@\(^.*):\(.*\)/\(.*\)$@\3@')" - - cat << \ - EOF - DB_HOST: ${DB_HOST} - DB_PORT: ${DB_PORT} - DB_NAME: ${DB_NAME} - DB_USER: ${DB_USER} - DB_PWD: ${DB_PWD} -EOF - return 0 -} +#function getdbcreds_jira () { +# [ $# -eq 0 ] return 1 +# +# DB_FILE=$1 +# +# DB_URL="$(grep -oPm1 "(?<=)[^<]+" ${DB_FILE})" +# DB_USER="$(grep -oPm1 "(?<=)[^<]+" ${DB_FILE})" +# DB_PWD="$(grep -oPm1 "(?<=)[^<]+" ${DB_FILE})" +# DB_HOST="$(echo $DB_URL|sed 's@^.*//@@;s@\(^.*):\(.*\)/\(.*\)$@\1@')" +# DB_PORT="$(echo $DB_URL|sed 's@^.*//@@;s@\(^.*):\(.*\)/\(.*\)$@\2@')" +# DB_NAME="$(echo $DB_URL|sed 's@^.*//@@;s@\(^.*):\(.*\)/\(.*\)$@\3@')" +# +# cat << \ +# EOF +# DB_HOST: ${DB_HOST} +# DB_PORT: ${DB_PORT} +# DB_NAME: ${DB_NAME} +# DB_USER: ${DB_USER} +# DB_PWD: ${DB_PWD} +#EOF +# return 0 +#} #EOF