]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: remove bashism
authorKarel Zak <kzak@redhat.com>
Tue, 19 Oct 2021 16:54:31 +0000 (18:54 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Oct 2021 16:54:31 +0000 (18:54 +0200)
Addresses: https://github.com/karelzak/util-linux/issues/1476
Signed-off-by: Karel Zak <kzak@redhat.com>
autogen.sh

index 14f8e23ba2df9de4713363f2faa4dfc3c8ca4b7b..c71c0404d4fad3c9f9bc9cf4456ab5aeaa972af9 100755 (executable)
@@ -134,7 +134,7 @@ if test -f tools/libtool.m4.patch; then
                rm m4/libtool.m4
                mv m4/libtool.m4.org m4/libtool.m4
        fi
-       patch --batch --dry -p1 < tools/libtool.m4.patch &> /dev/null;
+       patch --batch --dry -p1 < tools/libtool.m4.patch > /dev/null 2>&1
        if [ "$?" -eq 0 ]; then
                patch -p1 --batch < tools/libtool.m4.patch
        fi