From 5173a091e9f81667645ec5da43f2dd106e340b16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20Schr=C3=B6der?= Date: Tue, 16 Dec 2008 10:01:27 +0000 Subject: [PATCH] - 'test' doesn't short circuit properly --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index ffc6d00..af9930f 100755 --- a/build +++ b/build @@ -1098,7 +1098,7 @@ for SPECFILE in "${SPECFILES[@]}" ; do BUILD_USER=abuild if test -x $BUILD_ROOT/bin/rpm ; then SUSE_VERSION=`chroot $BUILD_ROOT /bin/rpm --eval '%{?suse_version}' 2>/dev/null` - if test -n "$SUSE_VERSION" -a "$SUSE_VERSION" -le 1020 ; then + if test -n "$SUSE_VERSION" && test "$SUSE_VERSION" -le 1020 ; then BUILD_USER=root fi fi -- 2.7.4