get_list_config.sh: change variable 'LIST_NAME' to 'FQ_LIST_NAME'.
This commit is contained in:
		| @@ -189,7 +189,7 @@ fi | |||||||
|  |  | ||||||
| while getopts hl: opt ; do | while getopts hl: opt ; do | ||||||
|    case $opt in |    case $opt in | ||||||
|       l)    LIST_NAME="$OPTARG" |       l)    FQ_LIST_NANE="$OPTARG" | ||||||
|             ;; |             ;; | ||||||
|       h)    usage |       h)    usage | ||||||
|             ;; |             ;; | ||||||
| @@ -206,7 +206,7 @@ fi | |||||||
| shift $(expr $OPTIND - 1) | shift $(expr $OPTIND - 1) | ||||||
| [[ $# -eq "0" ]] || usage "Wrong number of arguments!" | [[ $# -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? | # - List present? | ||||||
| # - | # - | ||||||
| if ! $(schleuder-cli lists list | grep -q -E "^${LIST_NAME}$" 2>/dev/null) ; then | if ! $(schleuder-cli lists list | grep -q -E "^${FQ_LIST_NANE}$" 2>/dev/null) ; then | ||||||
| 	fatal "List '$LIST_NAME' not found at this server!" | 	fatal "List '$FQ_LIST_NANE' not found at this server!" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| # ---------- | # ---------- | ||||||
| @@ -244,17 +244,17 @@ fi | |||||||
| if $terminal ; then | if $terminal ; then | ||||||
|    echo "" |    echo "" | ||||||
|    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 "" |    echo "" | ||||||
| else | else | ||||||
| 	 echo "" | 	 echo "" | ||||||
| 	 echo "   Parameter settings for list '$LIST_NAME':" | 	 echo "   Parameter settings for list '$FQ_LIST_NANE':" | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| for _option in $list_options ; do  | 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 | 	if [[ -s "${log_file}" ]]; then | ||||||
| 		error "$(cat "${log_file}")" | 		error "$(cat "${log_file}")" | ||||||
| 		clean_up 1 | 		clean_up 1 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user