]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Reformat nsstest.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:46:04 +0000 (15:46 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 4 Aug 2022 12:56:37 +0000 (12:56 +0000)
shfmt -w -p -i 0 -fn testprogs/blackbox/nsstest.sh

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

index bbca904620a85aa664e2ce50e68beca71e64c1ae..6bf67059e440a3df50b7af3087b349be572ccfe2 100755 (executable)
@@ -4,10 +4,10 @@
 # Copyright (C) 2006-2008 Andrew Bartlett <abartlet@samba.org>
 
 if [ $# -lt 2 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: nsstest.sh NSSTEST LIBNSS_WINBIND
 EOF
-exit 1;
+       exit 1
 fi
 
 nsstest=$1
@@ -15,8 +15,8 @@ libnss_winbind=$2
 shift 2
 failed=0
 
-. `dirname $0`/subunit.sh
+. $(dirname $0)/subunit.sh
 
-testit "run nsstest" $VALGRIND $nsstest $libnss_winbind || failed=`expr $failed + 1`
+testit "run nsstest" $VALGRIND $nsstest $libnss_winbind || failed=$(expr $failed + 1)
 
 exit $failed