Use -n vs ! -z

azure-pipelines
Joseph Donofry 6 years ago
parent 17004f014e
commit 4e07cae145
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 2
      .ci/linux/deploy.sh
  2. 2
      .ci/macos/deploy.sh

@ -49,7 +49,7 @@ done
chmod +x nheko-*x86_64.AppImage 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. # commented out for now, as AppImage file appears to already contain the version.
#mv nheko-*x86_64.AppImage nheko-${VERSION}-x86_64.AppImage #mv nheko-*x86_64.AppImage nheko-${VERSION}-x86_64.AppImage
echo "nheko-${VERSION}-x86_64.AppImage" echo "nheko-${VERSION}-x86_64.AppImage"

@ -25,6 +25,6 @@ PATH=/usr/local/opt/qt/bin/:${PATH}
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
if [ ! -z "$VERSION" ]; then if [ -n "$VERSION" ]; then
mv nheko.dmg "nheko-${VERSION}.dmg" mv nheko.dmg "nheko-${VERSION}.dmg"
fi fi

Loading…
Cancel
Save