Fixes instances of "SC2128: Expanding an array without an index only gives the first element.".

In cipherscan line 851:
        local selected=($result)
                        ^-- SC2128: Expanding an array without an index only gives the first element.

In cipherscan line 852:
        if [[ $selected == "$prefered" ]]; then
              ^-- SC2128: Expanding an array without an index only gives the first element.
This commit is contained in:
Richard Soderberg 2015-09-05 04:40:07 -07:00
parent b2521c8e42
commit 236b0b8cfe
1 changed files with 1 additions and 2 deletions

View File

@ -885,8 +885,7 @@ test_serverside_ordering() {
if (( $? != 0 )); then
serverside="True"
else
local selected=($result)
if [[ $selected == "$prefered" ]]; then
if [[ ${result%% *} == "$prefered" ]]; then
serverside="False"
else
serverside="True"