# vim: set ft=make :
alias upgrade := update
# Update system, flatpaks, and containers all at once
[group("system")]
update:
#!/usr/bin/bash
# Source brew if we are not in an interactive session
[[ $- != *i* ]] && source <(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
/usr/bin/topgrade --config /usr/share/ublue-os/topgrade.toml --keep
# Turn automatic updates on or off
_toggle-updates ACTION="prompt":
#!/usr/bin/bash
source /usr/lib/ujust/ujust.sh
CURRENT_STATE="$(systemctl is-enabled uupd.timer)"
OPTION={{ ACTION }}
if [ "$OPTION" == "prompt" ]; then
echo "Automatic updates are currently: ${bold}${CURRENT_STATE^}${normal}"
echo "Enable or Disable automatic updates?"
OPTION=$(ugum choose Enable Disable)
elif [ "$OPTION" == "help" ]; then
echo "Usage: ujust toggle-updates