#!/usr/bin/env bash new_yolk_v=$(curl -i -s https://github.com/elkowar/yolk/releases/latest | grep "location:" | awk -F '/' '/\//{print $NF}' | tr -d '\r\n') old_yolk_v=$(echo "v$(yolk -V | awk '{print $NF}')") if [ "$new_yolk_v" != "$old_yolk_v" ]; then dunstify -a "System" "A new version of yolk is available." "You should update the default.nix: ${new_yolk_v}"; fi;