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

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

index dd14f0d7ca9c8222438463f0345d08438d5e07fa..8a22ce2973266c43e1311ac8dda09aa26e87001a 100755 (executable)
@@ -4,10 +4,10 @@
 # Copyright (C) 2006-2008 Andrew Bartlett <abartlet@samba.org>
 
 if [ $# -lt 2 ]; then
-cat <<EOF
+       cat <<EOF
 Usage: dom_parse.sh [id|getent] $USER
 EOF
-exit 1;
+       exit 1
 fi
 
 USER=$2
@@ -16,12 +16,12 @@ EXTRA=""
 shift 2
 failed=0
 
-. `dirname $0`/subunit.sh
+. $(dirname $0)/subunit.sh
 
 if [ "$CMD" = "getent" ]; then
-    EXTRA="passwd"
+       EXTRA="passwd"
 fi
 
-testit "samba4.winbind.dom_name_parse.cmd.$CMD" $CMD $EXTRA $USER || failed=`expr $failed + 1`
+testit "samba4.winbind.dom_name_parse.cmd.$CMD" $CMD $EXTRA $USER || failed=$(expr $failed + 1)
 
 exit $failed