From: Andreas Schneider Date: Mon, 13 Jun 2022 14:07:21 +0000 (+0200) Subject: testprogs: Fix shellcheck errors in test_weak_crypto_server.sh X-Git-Tag: talloc-2.4.0~1346 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=355f620653fdc377673fde146e369c243bc9098f;p=thirdparty%2Fsamba.git testprogs: Fix shellcheck errors in test_weak_crypto_server.sh testprogs/blackbox/test_weak_crypto_server.sh:59:65: error: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). [SC1087] Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- diff --git a/testprogs/blackbox/test_weak_crypto_server.sh b/testprogs/blackbox/test_weak_crypto_server.sh index 8bcd7cbc680..e2b4660577f 100755 --- a/testprogs/blackbox/test_weak_crypto_server.sh +++ b/testprogs/blackbox/test_weak_crypto_server.sh @@ -56,7 +56,7 @@ unset GNUTLS_FORCE_FIPS_MODE testit "testparm-weak-crypto" test_weak_crypto_allowed || failed=$(expr $failed + 1) # We should not be allowed to use NTLM for connecting -testit_expect_failure "rpclient.ntlm" $samba_rpcclient ncacn_np:$SERVER_IP[ntlm] -U$USERNAME%$PASSWORD -c "getusername" && failed=$(expr $failed + 1) +testit_expect_failure "rpclient.ntlm" $samba_rpcclient ncacn_np:${SERVER_IP}[ntlm] -U$USERNAME%$PASSWORD -c "getusername" && failed=$(expr $failed + 1) GNUTLS_FORCE_FIPS_MODE=1 export GNUTLS_FORCE_FIPS_MODE