mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-04 15: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:
parent
b2521c8e42
commit
236b0b8cfe
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user