diff --git a/build/ublue-os-just/10-update.just b/build/ublue-os-just/10-update.just
index e98f5904..e8107598 100644
--- a/build/ublue-os-just/10-update.just
+++ b/build/ublue-os-just/10-update.just
@@ -74,7 +74,7 @@ update-firmware:
fwupdmgr update
# Turn automatic updates on or off
-toggle-updates:
+toggle-updates ARG="prompt":
#!/usr/bin/env bash
CURRENT_STATE="Disabled"
if systemctl is-enabled ublue-update.timer | grep -q enabled; then
@@ -82,16 +82,25 @@ toggle-updates:
fi
bold=$(tput bold)
normal=$(tput sgr0)
- echo "Automatic updates are currently: ${bold}${CURRENT_STATE}${normal}"
- echo "Enable or Disable automatic updates?"
- OPTION=$(ugum choose Enable Disable)
- if [ "$OPTION" == "Enable" ]; then
+ OPTION={{ARG}}
+ 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