From 50b6b995aa7edf290bbc87f487dc849febbecadc Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 26 Apr 2020 14:47:34 -0700 Subject: [PATCH] Fix snapcraft env check --- .github/actions/release-linux/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/release-linux/entrypoint.sh b/.github/actions/release-linux/entrypoint.sh index 475f277269..18133a2317 100644 --- a/.github/actions/release-linux/entrypoint.sh +++ b/.github/actions/release-linux/entrypoint.sh @@ -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