Skip to content

Instantly share code, notes, and snippets.

View john-fk-doe's full-sized avatar
👾
lost in 8-bit space

Denis Dedov john-fk-doe

👾
lost in 8-bit space
View GitHub Profile
#!/usr/bin/env bash
repo="bcicen/ctop"
current=$(reprepro -b /var/www/repos/apt/debian list stable docker-ctop | head -n1 | awk '{print $3}')
api=$(curl --silent "https://api.github.com/repos/$repo/releases/latest")
new=$(echo $api | grep -Po '"tag_name": "v\K.*?(?=")')
if [ "$current" == "$new" ]; then
exit