core: replace "! -z" by "-n" in build-debian.sh

v2.8-utf8proc
Sébastien Helleu 2019-11-28 21:27:43 +01:00
parent d2300e62af
commit d876ec49fc
1 changed files with 1 additions and 1 deletions

View File

@ -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