dotfiles/eggs/utility/util-scripts/run-at-start.sh
2025-05-19 16:47:38 +02:00

10 lines
376 B
Bash
Executable File

#!/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;