diff --git a/home.admin/99updateMenu.sh b/home.admin/99updateMenu.sh index 2f9bcdc44..6e077a7bd 100755 --- a/home.admin/99updateMenu.sh +++ b/home.admin/99updateMenu.sh @@ -5,26 +5,7 @@ source /home/admin/raspiblitz.info source /mnt/hdd/raspiblitz.conf source /home/admin/_version.info -clear - -# Basic Options -OPTIONS=( -RELEASE "RaspiBlitz Release Update/Recovery" \ -LND "Interim LND Update Options" \ -PATCH "Patch RaspiBlitz v${codeVersion}" -) - -if [ "${bos}" == "on" ]; then - OPTIONS+=(BOS "Update Balance of Satoshis") -fi -if [ "${thunderhub}" == "on" ]; then - OPTIONS+=(THUB "Update ThunderHub") -fi -if [ "${specter}" == "on" ]; then - OPTIONS+=(SPECTER "Update Cryptoadvance Specter") -fi - -CHOICE=$(whiptail --clear --title "Update Options" --menu "" 13 55 6 "${OPTIONS[@]}" 2>&1 >/dev/tty) +## PROCEDURES release() { @@ -285,6 +266,31 @@ Do you really want to update LND now? esac } +# quick call by parameter +if [ "$1" == "github" ]; then + patch + exit 0 +fi + +# Basic Options Menu +OPTIONS=( +RELEASE "RaspiBlitz Release Update/Recovery" \ +LND "Interim LND Update Options" \ +PATCH "Patch RaspiBlitz v${codeVersion}" +) + +if [ "${bos}" == "on" ]; then + OPTIONS+=(BOS "Update Balance of Satoshis") +fi +if [ "${thunderhub}" == "on" ]; then + OPTIONS+=(THUB "Update ThunderHub") +fi +if [ "${specter}" == "on" ]; then + OPTIONS+=(SPECTER "Update Cryptoadvance Specter") +fi + +CHOICE=$(whiptail --clear --title "Update Options" --menu "" 13 55 6 "${OPTIONS[@]}" 2>&1 >/dev/tty) + clear case $CHOICE in RELEASE) diff --git a/home.admin/_commands.sh b/home.admin/_commands.sh index 401bd78ee..a27033d05 100755 --- a/home.admin/_commands.sh +++ b/home.admin/_commands.sh @@ -60,6 +60,13 @@ function off() { ./XXshutdown.sh } +# command: github +# jumpng directly into the options to change branch/repo/pr +function github() { + cd /home/admin + ./99updateMenu.sh github +} + # command: hdmi function hdmi() { echo "# SWITCHING VIDEO OUTPUT TO --> HDMI"