]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/objectstore/test_fuse.sh: use portable function decl
authorDan Mick <dan.mick@redhat.com>
Thu, 16 Feb 2017 01:21:01 +0000 (17:21 -0800)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 03:18:20 +0000 (11:18 +0800)
function f() is illegal in strict POSIX shells, like dash, which is
the default /bin/sh on Ubuntu

Signed-off-by: Dan Mick <dan.mick@redhat.com>
qa/workunits/objectstore/test_fuse.sh

index da42a4cb55907fe2a2fd2b4876489728a0b26aeb..052307749df86b93f8b44b9b9190f5c994654a0e 100755 (executable)
@@ -6,7 +6,7 @@ if ! id -u | grep -q '^0$'; then
     exit 0
 fi
 
-function expect_false()
+expect_false()
 {
         set -x
         if "$@"; then return 1; else return 0; fi