diff options
author | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-03-21 15:54:02 +0000 |
---|---|---|
committer | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-03-21 15:54:02 +0000 |
commit | b3a6f85e3f38a431760951de930680f2c6622a51 (patch) | |
tree | 4b0b875e9385543aeb225e72daf44277313ea780 | |
parent | 9bd011b50ee360636bc7048728105851817a7967 (diff) | |
download | wgetpaste-b3a6f85e3f38a431760951de930680f2c6622a51.tar.gz |
Fix verify count. Sort list of services.
-rwxr-xr-x | wgetpaste | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -165,7 +165,7 @@ show_services() { for ((i=0; i<${#SERVICES[*]}; i++)); do [[ ${VERBOSE} ]] && eval "engine=$'\e'\"[${INDV}G- \${${SERVICES[i]}[0]}\"" eval "echo -e \" ${SERVICES[i]} \e[${IND}G- \${${SERVICES[i]}[1]}${engine}\"" - done + done | sort } ### verify functions @@ -185,7 +185,8 @@ verify() { for ((i=0; i<${nr}; i++)); do if [[ "$(eval "echo \${${1}}")" == "$(eval "echo \${${ENGINE}_${1}S[i]}")" ]]; then if [[ -n "$(eval "echo \"\${${ENGINE}_${1}_COUNT}\"")" ]]; then - ((i++)) && eval "${1}=\"${i}\"" + ((i++)) + eval "${1}=\"${i}\"" elif [[ -n "$(eval "echo \"\${${ENGINE}_${1}_VALUES}\"")" ]]; then eval "${1}=\${${ENGINE}_${1}_VALUES[i]}" fi |