Files
docker_apthunter/get-latest-tag.sh
2022-05-20 13:41:17 +02:00

4 lines
247 B
Bash
Executable File

#!/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}"