]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat test_shareenum.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:10 +0000 (15:34 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 10 Jun 2022 13:53:37 +0000 (13:53 +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_shareenum.sh

index 3904b519d549b8d63af1c72962052165766641f0..0334243edc6339c63495221ebd2ae39e46b89d9d 100755 (executable)
@@ -3,10 +3,10 @@
 # this tests share enumeration with "access based share enum"
 
 if [ $# -lt 4 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: $0 SERVER USERNAME PASSWORD RPCCLIENT
 EOF
-exit 1;
+       exit 1
 fi
 
 SERVER="$1"
@@ -15,13 +15,14 @@ PASSWORD="$3"
 RPCCLIENT="$4"
 RPCCLIENT="$VALGRIND ${RPCCLIENT}"
 
-incdir=`dirname $0`/../../../testprogs/blackbox
+incdir=$(dirname $0)/../../../testprogs/blackbox
 . $incdir/subunit.sh
 
-user_see_share() {
-    local user=$1
-    local share=$2
-    $RPCCLIENT //$SERVER -U$user%$PASSWORD -c "netshareenumall" | grep $share > /dev/null 2>&1
+user_see_share()
+{
+       local user=$1
+       local share=$2
+       $RPCCLIENT //$SERVER -U$user%$PASSWORD -c "netshareenumall" | grep $share >/dev/null 2>&1
 }
 
 testit "$USERNAME sees tmp" user_see_share $USERNAME tmp