From eb66a02a96025118cb6e9a6dba51981e8ca9567d Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Thu, 21 Jan 2021 19:50:31 -0800 Subject: [PATCH] skip update if offline skip checking for update if offline. --- .github/workflows/AppRun | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/AppRun b/.github/workflows/AppRun index fc1a71511..5abdbc969 100644 --- a/.github/workflows/AppRun +++ b/.github/workflows/AppRun @@ -7,8 +7,11 @@ mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps && cp $APPDIR/yuzu.svg $ GITVER=`wget -qO- https://www.github.com/pineappleEA/pineapple-src/releases/tag/continuous | grep pineappleEA/pineapple-src/commit/ | cut -d '"' -f 2 | cut -d '/' -f 5 | awk '!x[$0]++'` APPVER=`cat $APPDIR/version.txt` -if [ "$GITVER" = "$APPVER" ]; then +if [[ -z "$GITVER" ]]; then + $APPDIR/usr/bin/yuzu +elif [ "$GITVER" = "$APPVER" ]; then $APPDIR/usr/bin/yuzu else $APPDIR/update.sh fi +