dots/scripts/Documents/Scripts/latestyuzupull.sh
2024-04-29 19:05:39 +02:00

22 lines
393 B
Bash
Executable file

#!/usr/bin/sh
YUZUURL="https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest"
YUZU="/home/zoey/AppImages/Linux-Yuzu*.AppImage"
APPIMAGES="/home/zoey/AppImages"
if test -f $YUZU; then
rm $YUZU
else
echo "abababa" > /dev/null
fi
cd $APPIMAGES &&
curl -s $YUZUURL \
| grep "browser_download_url.*.AppImage" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi - &&
chmod +x $YUZU