get_list_config.sh: change variable 'LIST_NAME' to 'FQ_LIST_NAME'.
This commit is contained in:
parent
08feaa7762
commit
97999039d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user