Open amotl opened 2 years ago
Just a note to self.
function checkver { pkg_name="$1" pkg_vmin="$2" pkg_vcur=$(dpkg-query -f='${Version}\n' --show "$pkg_name") if $(dpkg --compare-versions "$pkg_vcur" "lt" "$pkg_vmin"); then return 1; fi } checkver unattended-upgrades 1.12 || (echo "Too old!" && exit 3)
Just a note to self.