2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-12-25 04:03:41 +01:00

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

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"