From 4e07cae145db600d3c1cfadbd7950ee5657e88f3 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Sat, 18 May 2019 00:05:51 -0400 Subject: [PATCH] Use -n vs ! -z --- .ci/linux/deploy.sh | 2 +- .ci/macos/deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/linux/deploy.sh b/.ci/linux/deploy.sh index 403fde14..e080c283 100755 --- a/.ci/linux/deploy.sh +++ b/.ci/linux/deploy.sh @@ -49,7 +49,7 @@ done chmod +x nheko-*x86_64.AppImage -if [ ! -z "$VERSION" ]; then +if [ -n "$VERSION" ]; then # commented out for now, as AppImage file appears to already contain the version. #mv nheko-*x86_64.AppImage nheko-${VERSION}-x86_64.AppImage echo "nheko-${VERSION}-x86_64.AppImage" diff --git a/.ci/macos/deploy.sh b/.ci/macos/deploy.sh index 45ed13bc..bb82d294 100755 --- a/.ci/macos/deploy.sh +++ b/.ci/macos/deploy.sh @@ -25,6 +25,6 @@ PATH=/usr/local/opt/qt/bin/:${PATH} dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg -if [ ! -z "$VERSION" ]; then +if [ -n "$VERSION" ]; then mv nheko.dmg "nheko-${VERSION}.dmg" fi