Added tag-script

This commit is contained in:
TKE
2022-05-20 13:41:17 +02:00
parent 627bf9cfe8
commit 030742a3a0

3
get-latest-tag.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
tag=$(curl https://github.com/ahmedkhlief/APT-Hunter/tags.atom | grep -Pio 'link.*' | grep -Pio '(?<=href=")[^"]+' | grep tag | head -n1 | grep -Pio '(?<=tag/).*$' | tr -dc '[[:alnum:]]' | tr '[[:upper:]]' '[[:lower:]]')
echo "${tag}"