From: Martin Pool Date: Fri, 31 Aug 2001 09:26:34 +0000 (+0000) Subject: Fix sh syntax for FreeBSD. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/4a7cb3e8a82c5b641ef4344a41af33847922f4c2 Fix sh syntax for FreeBSD. --- 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"