skip update if offline

skip checking for update if offline.
This commit is contained in:
qurious-pixel 2021-01-21 19:50:31 -08:00 committed by GitHub
parent b0ca4a21cf
commit eb66a02a96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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