]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat test_rpcclient.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.sh

index c504f17187c6f71a6cc0f393bef3995bff890933..4260963da9e77c87f5fb1e2df0dbbcb58b76c5c9 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/sh
 
 if [ $# -lt 1 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: test_rpcclient.sh ccache binding <rpcclient commands>
 EOF
-exit 1;
+       exit 1
 fi
 
 KRB5CCNAME=$1
@@ -12,8 +12,8 @@ shift 1
 export KRB5CCNAME
 ADDARGS="$*"
 
-incdir=`dirname $0`/../../../testprogs/blackbox
+incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
-testit "rpcclient" $VALGRIND $BINDIR/rpcclient $ADDARGS || failed=`expr $failed + 1`
+testit "rpcclient" $VALGRIND $BINDIR/rpcclient $ADDARGS || failed=$(expr $failed + 1)
 
 testok $0 $failed