From 97999039d41606b9c67d0bc2cc30d069a7b60604 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 11 May 2018 16:25:11 +0200 Subject: [PATCH] get_list_config.sh: change variable 'LIST_NAME' to 'FQ_LIST_NAME'. --- get_list_config.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/get_list_config.sh b/get_list_config.sh index 50aa4fa..ee55ecb 100755 --- a/get_list_config.sh +++ b/get_list_config.sh @@ -189,7 +189,7 @@ fi while getopts hl: opt ; do case $opt in - l) LIST_NAME="$OPTARG" + l) FQ_LIST_NANE="$OPTARG" ;; h) usage ;; @@ -206,7 +206,7 @@ fi shift $(expr $OPTIND - 1) [[ $# -eq "0" ]] || usage "Wrong number of arguments!" -[[ -n "$LIST_NAME" ]] || usage "List address not given! Use comandline parameter '-l'." +[[ -n "$FQ_LIST_NANE" ]] || usage "List address not given! Use comandline parameter '-l'." # ---------- @@ -233,8 +233,8 @@ fi # - List present? # - -if ! $(schleuder-cli lists list | grep -q -E "^${LIST_NAME}$" 2>/dev/null) ; then - fatal "List '$LIST_NAME' not found at this server!" +if ! $(schleuder-cli lists list | grep -q -E "^${FQ_LIST_NANE}$" 2>/dev/null) ; then + fatal "List '$FQ_LIST_NANE' not found at this server!" fi # ---------- @@ -244,17 +244,17 @@ fi if $terminal ; then echo "" echo "" - echo -e " \033[1mParameter settings for list \033[32m\033[1m$LIST_NAME\033[32m ..\033[m" + echo -e " \033[1mParameter settings for list \033[32m\033[1m$FQ_LIST_NANE\033[32m ..\033[m" echo "" else echo "" - echo " Parameter settings for list '$LIST_NAME':" + echo " Parameter settings for list '$FQ_LIST_NANE':" fi for _option in $list_options ; do - _val="$(schleuder-cli lists show $LIST_NAME $_option 2> $log_file)" + _val="$(schleuder-cli lists show $FQ_LIST_NANE $_option 2> $log_file)" if [[ -s "${log_file}" ]]; then error "$(cat "${log_file}")" clean_up 1