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

index 10cedc897de973d58aeda3fc1ce99b7f2d44c86f..f4dded6ccb14aab988b09139b854c319276ef454 100755 (executable)
@@ -15,9 +15,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
 
-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