]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat test_rpcclient_pw_nt_hash.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:10 +0000 (15:34 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 8 Jun 2022 13:14:47 +0000 (13:14 +0000)
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/script/tests/test_rpcclient_pw_nt_hash.sh

index c03d22f1f69c995aaab496182497b9600d550dfd..33e49a86f9232cec56e856556974c2aaa805aeda 100755 (executable)
@@ -4,10 +4,10 @@
 #
 
 if [ $# -lt 4 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: test_rpcclient_pw_nt_hash.sh USERNAME PASSWORD SERVER RPCCLIENT
 EOF
-exit 1;
+       exit 1
 fi
 
 USERNAME="$1"
@@ -15,13 +15,13 @@ PASSWORD="$2"
 SERVER="$3"
 RPCCLIENT="$4"
 
-HASH=`echo -n $PASSWORD | iconv -t utf16le | openssl md4 |cut -d ' ' -f2`
+HASH=$(echo -n $PASSWORD | iconv -t utf16le | openssl md4 | cut -d ' ' -f2)
 
 RPCCLIENTCMD="$RPCCLIENT $SERVER --pw-nt-hash -U$USERNAME%$HASH -c queryuser"
 
 incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
 
-testit "rpcclient --pw-nt-hash" $RPCCLIENTCMD || failed=`expr $failed + 1`
+testit "rpcclient --pw-nt-hash" $RPCCLIENTCMD || failed=$(expr $failed + 1)
 
 testok $0 $failed