update xastir version check

pull/185/head
KM4ACK 2021-01-29 11:43:06 -06:00
rodzic ce5530b743
commit d50129fd7e
1 zmienionych plików z 11 dodań i 6 usunięć

17
update
Wyświetl plik

@ -458,12 +458,17 @@ fi
#----------------------------------------------------#
# XASTIR
#----------------------------------------------------#
XA="/usr/bin/xastir"
if [ ! -f "$XA" ]; then
XASTIR="Not Installed"
else
XASTIR="Installed"
fi
LATESTXAS=$(curl -s https://github.com/Xastir/Xastir | grep Release- | head -1 | sed 's/.*Release-//;s/">//')
CURRENTXAS=$(xastir -V | sed 's/Xastir V//;s/(.*//;/^\s*$/d')
if (( $(echo "$LATESTXAS $CURRENTXAS" | awk '{print ($1 > $2)}') ))
then
XASTIR=NEEDS-UPDATE
else
XASTIR="is_latest_version"
fi
echo $XASTIR
#----------------------------------------------------#
# YAAC