]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Reformat test_ldb_simple.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 09:22:30 +0000 (09:22 +0000)
shfmt -w -p -i 0 -fn testprogs/blackbox/test_ldb_simple.sh

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

index 604c4a6d53b512845add670cfcfb18fb267f12e0..433bacdaf5cc007d405b61fda9377b7311ec5e5a 100755 (executable)
@@ -1,22 +1,22 @@
 #!/bin/sh
 
 if [ $# -lt 2 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: test_ldb_simple.sh PROTOCOL SERVER [OPTIONS]
 EOF
-exit 1;
+       exit 1
 fi
 
-
 p=$1
 SERVER=$2
 PREFIX=$3
 shift 2
 options="$*"
 
-. `dirname $0`/subunit.sh
+. $(dirname $0)/subunit.sh
 
-check() {
+check()
+{
        name="$1"
        shift
        cmdline="$*"
@@ -27,7 +27,7 @@ check() {
                echo "success: $name"
        else
                echo "failure: $name"
-               failed=`expr $failed + 1`
+               failed=$(expr $failed + 1)
        fi
        return $status
 }
@@ -36,6 +36,6 @@ export PATH="$BINDIR:$PATH"
 
 ldbsearch="$VALGRIND ldbsearch"
 
-check "currentTime" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER --scope=base currentTime || failed=`expr $failed + 1`
+check "currentTime" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER --scope=base currentTime || failed=$(expr $failed + 1)
 
 exit $failed