Fix snapcraft env check

This commit is contained in:
Gregory Schier
2020-04-26 14:47:34 -07:00
parent d1b7d55483
commit 50b6b995aa

View File

@@ -17,7 +17,7 @@ echo "Running the stuff"
npm test
# Log into snapcraft for publishing
if [ -z "$SNAPCRAFT_LOGIN_FILE" ]; then
if [ -n "$SNAPCRAFT_LOGIN_FILE" ]; then
echo "$SNAPCRAFT_LOGIN_FILE" > snapcraft.txt && snapcraft login --with snapcraft.txt
fi