kopia lustrzana https://github.com/km4ack/pi-build
fix xastir update check
rodzic
60cb65e871
commit
7bac35726e
13
update
13
update
|
@ -447,13 +447,18 @@ CHECK() {
|
||||||
#----------------------------------------------------#
|
#----------------------------------------------------#
|
||||||
# XASTIR
|
# XASTIR
|
||||||
#----------------------------------------------------#
|
#----------------------------------------------------#
|
||||||
|
echo "Checking Xastir"
|
||||||
|
if ! hash xastir 2>/dev/null; then
|
||||||
|
XASTIR="Not_Installed"
|
||||||
|
else
|
||||||
LATESTXAS=$(curl -s https://github.com/Xastir/Xastir | grep Release- | head -1 | sed 's/.*Release-//;s/">//')
|
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')
|
CURRENTXAS=$(xastir -V | sed 's/Xastir V//;s/(.*//;/^\s*$/d')
|
||||||
|
|
||||||
if (($(echo "${LATESTXAS} ${CURRENTXAS}" | awk '{print ($1 > $2)}'))); then
|
if (($(echo "${LATESTXAS} ${CURRENTXAS}" | awk '{print ($1 > $2)}'))); then
|
||||||
XASTIR=NEEDS-UPDATE
|
XASTIR=NEEDS-UPDATE
|
||||||
else
|
else
|
||||||
XASTIR="is_latest_version"
|
XASTIR="is_latest_version"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------#
|
#----------------------------------------------------#
|
||||||
|
|
Ładowanie…
Reference in New Issue