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}"