From d876ec49fcea74dc430aca90c41ed1e5f32b6dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 28 Nov 2019 21:27:43 +0100 Subject: core: replace "! -z" by "-n" in build-debian.sh --- tools/build-debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/build-debian.sh b/tools/build-debian.sh index 79a8e17db..dcb8b1581 100755 --- a/tools/build-debian.sh +++ b/tools/build-debian.sh @@ -160,7 +160,7 @@ DISTRO="$2" # example: devel => devel / 1, stable-2 => stable / 2, 1.9-2 => 1.9 / 2 TMP_VERSION=$(expr "${VERSION}" : '\([^/]*\)-') || true DEB_REVISION="" -if [ ! -z "${TMP_VERSION}" ]; then +if [ -n "${TMP_VERSION}" ]; then DEB_REVISION=$(expr "${VERSION}" : '[^-]*-\([^-]*\)') || true VERSION="${TMP_VERSION}" fi -- cgit v1.2.3