#!/bin/sh
# rikkiti-update — interactive system upgrade in a terminal window. Launched by
# the panel's update-notification button; works standalone too.
for t in kitty foot alacritty xterm; do
	command -v "$t" >/dev/null 2>&1 && break
done
exec "$t" -e sh -c '
	echo "── Rikkiti OS software update ──"
	sudo apt update && sudo apt full-upgrade
	echo
	printf "Done — press Enter to close. "
	read x
'
