From 030742a3a0c21baed535b3244c6069a62a30a3c8 Mon Sep 17 00:00:00 2001 From: TKE Date: Fri, 20 May 2022 13:41:17 +0200 Subject: [PATCH] Added tag-script --- get-latest-tag.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 get-latest-tag.sh diff --git a/get-latest-tag.sh b/get-latest-tag.sh new file mode 100755 index 0000000..eed1889 --- /dev/null +++ b/get-latest-tag.sh @@ -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}"