From: Andreas Schneider Date: Fri, 22 Apr 2022 13:34:12 +0000 (+0200) Subject: s3:tests: Reformat wb_pad.sh X-Git-Tag: tevent-0.13.0~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb7f2936336d1c2f1a2ba75a6949d36e144cee7;p=thirdparty%2Fsamba.git s3:tests: Reformat wb_pad.sh shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- diff --git a/source3/script/tests/wb_pad.sh b/source3/script/tests/wb_pad.sh index 10cedc897de..f4dded6ccb1 100755 --- a/source3/script/tests/wb_pad.sh +++ b/source3/script/tests/wb_pad.sh @@ -15,9 +15,9 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, see . -tempdir=`mktemp -d /tmp/wb_padXXXXXX` +tempdir=$(mktemp -d /tmp/wb_padXXXXXX) test -n "$tempdir" || exit 1 -cat >> $tempdir/wb_pad.c << _EOF +cat >>$tempdir/wb_pad.c <<_EOF #include "nsswitch/winbind_client.h" int main(int argc, const char **argv) @@ -41,7 +41,8 @@ int main(int argc, const char **argv) } _EOF -cleanup() { +cleanup() +{ rm -f $tempdir/wb_pad_32 $tempdir/wb_pad_64 $tempdir/wb_pad.c rmdir $tempdir } @@ -58,10 +59,10 @@ if [ $? -ne 0 ]; then exit 1 fi -out_64_req=`$tempdir/wb_pad_64 req` -out_64_resp=`$tempdir/wb_pad_64 resp` -out_32_req=`$tempdir/wb_pad_32 req` -out_32_resp=`$tempdir/wb_pad_32 resp` +out_64_req=$($tempdir/wb_pad_64 req) +out_64_resp=$($tempdir/wb_pad_64 resp) +out_32_req=$($tempdir/wb_pad_32 req) +out_32_resp=$($tempdir/wb_pad_32 resp) cleanup