mirror of
https://github.com/mozilla/cipherscan.git
synced 2026-02-06 07:05:15 +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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user