From 4a7cb3e8a82c5b641ef4344a41af33847922f4c2 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 31 Aug 2001 09:26:34 +0000 Subject: [PATCH] Fix sh syntax for FreeBSD. --- runtests.sh | 3 +++ testsuite/rsync.fns | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/runtests.sh b/runtests.sh index 5c672dd2..77a2fa97 100755 --- a/runtests.sh +++ b/runtests.sh @@ -92,6 +92,9 @@ # they're in POSIX 1003.2, and since the build farm relies on them # they're probably working on most machines we really care about. +# You cannot use "function foo {" syntax, but must instead say "foo() +# {", or it breaks on FreeBSD. + set -e diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index f5869a49..a80a96cb 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -101,7 +101,7 @@ checkforlogs() { } -function build_rsyncd_conf { +build_rsyncd_conf() { # Build an appropriate configuration file conf="$scratchdir/test-rsyncd.conf" echo "building configuration $conf" -- 2.34.1