We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce5530b commit d50129fCopy full SHA for d50129f
update
@@ -458,12 +458,17 @@ fi
458
#----------------------------------------------------#
459
# XASTIR
460
461
-XA="/usr/bin/xastir"
462
-if [ ! -f "$XA" ]; then
463
-XASTIR="Not Installed"
464
-else
465
-XASTIR="Installed"
466
-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
467
+ else
468
+ XASTIR="is_latest_version"
469
+ fi
470
471
+echo $XASTIR
472
473
474
# YAAC
0 commit comments