testprogs: Reformat test_trust_token.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:46:05 +0000 (15:46 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Wed, 10 Aug 2022 13:17:31 +0000 (13:17 +0000)
shfmt -w -p -i 0 -fn testprogs/blackbox/test_trust_token.sh

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
testprogs/blackbox/test_trust_token.sh

index 21de2244c1bbbfb93b671e7043c755992a0eda86..7a41f11faaa742a86a20681c19f3d5ecc67cab1b 100755 (executable)
@@ -2,10 +2,10 @@
 # Copyright (C) 2017 Stefan Metzmacher <metze@samba.org>
 
 if [ $# -lt 12 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: $# test_trust_token.sh SERVER USERNAME PASSWORD REALM DOMAIN DOMSID TRUST_USERNAME TRUST_PASSWORD TRUST_REALM TRUST_DOMAIN TRUST_DOMSID TYPE
 EOF
-exit 1;
+       exit 1
 fi
 
 SERVER=$1
@@ -30,8 +30,8 @@ samba4bindir="$BINDIR"
 
 ldbsearch="$samba4bindir/ldbsearch"
 
-. `dirname $0`/subunit.sh
-. `dirname $0`/common_test_fns.inc
+. $(dirname $0)/subunit.sh
+. $(dirname $0)/common_test_fns.inc
 
 test_token()
 {
@@ -86,8 +86,8 @@ test_token()
        return 0
 }
 
-testit "Test token with kerberos" test_token "yes" "" || failed=`expr $failed + 1`
+testit "Test token with kerberos" test_token "yes" "" || failed=$(expr $failed + 1)
 # Check that SID_NT_NTLM_AUTHENTICATION(S-1-5-64-10) is added for NTLMSSP
-testit "Test token with NTLMSSP" test_token "no" "S-1-5-64-10" || failed=`expr $failed + 1`
+testit "Test token with NTLMSSP" test_token "no" "S-1-5-64-10" || failed=$(expr $failed + 1)
 
 exit $failed