1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

testprogs: Reformat dom_parse.sh

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>
This commit is contained in:
Andreas Schneider 2022-04-22 15:46:04 +02:00 committed by Andreas Schneider
parent eab5cdb66f
commit 91035d48f2

View File

@ -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"
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