update YAAC check

pull/267/head
KM4ACK 2021-04-02 18:48:14 -05:00
rodzic 325f6f8738
commit 69764849b0
1 zmienionych plików z 2 dodań i 1 usunięć

3
update
Wyświetl plik

@ -465,10 +465,11 @@ CHECK() {
# YAAC
#----------------------------------------------------#
YAAC="${HOME}/YAAC"
echo "Checking YAAC for updates"
if [ ! -d "$YAAC" ]; then
YAAC="Not Installed"
else
echo "Checking YAAC for updates"
CURYAAC=$(java -jar ${HOME}/YAAC/YAAC.jar -version | grep core | awk '{print $7}' | sed 's/(.*//;s/1.0-beta//')
wget -q https://sourceforge.net/projects/yetanotheraprsc/files/YAACBuildLabel.txt -O /run/user/${UID}/latestyaac.txt
LATESTYAAC=$(cat /run/user/${UID}/latestyaac.txt | sed 's/1.0-beta//;s/(.*//')