diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-11-28 21:27:43 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-11-28 21:27:43 +0100 |
commit | d876ec49fcea74dc430aca90c41ed1e5f32b6dde (patch) | |
tree | ecd75720946f0aac82ce1675f4e66085a88abd92 | |
parent | d2300e62afb64ae0e9c8fa1e76c2108bf445c31c (diff) | |
download | weechat-d876ec49fcea74dc430aca90c41ed1e5f32b6dde.zip |
core: replace "! -z" by "-n" in build-debian.sh
-rwxr-xr-x | tools/build-debian.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |