diff options
author | Tobias Borgert | 2022-08-22 09:22:14 +0200 |
---|---|---|
committer | Tobias Borgert | 2022-08-22 09:23:16 +0200 |
commit | 4b6af2d2db3566a4c819ed76cd8012e265706580 (patch) | |
tree | 785ef895d62a621e70d8a9628988be623a9dfb1d | |
parent | 742889cab8cc526cfad72a0b3d0776b93e561a4b (diff) | |
download | aur-4b6af2d2db3566a4c819ed76cd8012e265706580.tar.gz |
Add simple helper script to check if extra/discover was updated
-rwxr-xr-x | checkVersion.bash | 8 |
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}." |