]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Reformat bogus.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:46:04 +0000 (15:46 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Fri, 15 Jul 2022 13:00:30 +0000 (13:00 +0000)
shfmt -w -p -i 0 -fn testprogs/blackbox/bogus.sh

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Fri Jul 15 13:00:30 UTC 2022 on sn-devel-184

testprogs/blackbox/bogus.sh

index 3056b538aee03bdfdab72bc91f5e5b2f713be47d..1edd1537ed53d8f495625399d80cbf25c00b3453 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/sh
 
 if [ $# -lt 1 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: bogus.sh SERVER SHARE USER PASSWORD DC_USER DC_PASSWORD SMBCLIENT
 EOF
-exit 1;
+       exit 1
 fi
 
-. `dirname $0`/subunit.sh
+. $(dirname $0)/subunit.sh
 
 SERVER=$1
 SHARE=$2
@@ -21,8 +21,8 @@ shift 7
 TEST_USER=bogus_testuser
 TEST_PWD=bogus_pass3#@
 net="$BINDIR/net"
-testit_expect_failure "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$DC_USER%$DC_PWD -c "dir"&& failed=`expr $failed + 1`
+testit_expect_failure "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$DC_USER%$DC_PWD -c "dir" && failed=$(expr $failed + 1)
 testit "net.user.add" $net rpc user add $TEST_USER $TEST_PWD -W $SERVER -U$SERVER\\$USER%$PWD -S $SERVER
-testit "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$TEST_USER%$TEST_PWD -c "dir"|| failed=`expr $failed + 1`
+testit "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$TEST_USER%$TEST_PWD -c "dir" || failed=$(expr $failed + 1)
 testit "net.user.delete" $net rpc user delete $TEST_USER -W $SERVER -U$SERVER\\$USER%$PWD -S $SERVER
 exit $failed