Use -n vs ! -z

This commit is contained in:
Joseph Donofry 2019-05-18 00:05:51 -04:00
parent 17004f014e
commit 4e07cae145
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 2 additions and 2 deletions

View file

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

View file

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