From 236b0b8cfe4a9f3b8d3ca394b0d7bef29639a3ca Mon Sep 17 00:00:00 2001 From: Richard Soderberg Date: Sat, 5 Sep 2015 04:40:07 -0700 Subject: [PATCH] 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. --- cipherscan | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cipherscan b/cipherscan index 71bab44..fc1c986 100755 --- a/cipherscan +++ b/cipherscan @@ -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"