summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Borgert2022-08-22 09:22:14 +0200
committerTobias Borgert2022-08-22 09:23:16 +0200
commit4b6af2d2db3566a4c819ed76cd8012e265706580 (patch)
tree785ef895d62a621e70d8a9628988be623a9dfb1d
parent742889cab8cc526cfad72a0b3d0776b93e561a4b (diff)
downloadaur-4b6af2d2db3566a4c819ed76cd8012e265706580.tar.gz
Add simple helper script to check if extra/discover was updated
-rwxr-xr-xcheckVersion.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/checkVersion.bash b/checkVersion.bash
new file mode 100755
index 000000000000..2c32e7f1d000
--- /dev/null
+++ b/checkVersion.bash
@@ -0,0 +1,8 @@
+#!/bin/bash
+# This is a not very elaborate script to check the version of Discover in the
+# official repositories and the AUR version. It assumes discover-snap is
+# installed on the system.
+ARCHVERSION=`curl -s https://archlinux.org/packages/extra/x86_64/discover/ | grep -oP '(?<=<meta itemprop="softwareVersion" content=\").*?(?=\"/>)'`
+AURVERSION=`LC_ALL=C pacman -Qi discover-snap | grep -oP '(?<=Version : )([0-9,\.\-])*'`
+echo "Arch (discover) version is ${ARCHVERSION}."
+echo "AUR (discover-snap) version is ${AURVERSION}."