2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 14:23: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 if (( $? != 0 )); then
serverside="True" serverside="True"
else else
local selected=($result) if [[ ${result%% *} == "$prefered" ]]; then
if [[ $selected == "$prefered" ]]; then
serverside="False" serverside="False"
else else
serverside="True" serverside="True"