#1406 adding github command (#1553)

Co-authored-by: rootzoll <rotzoll@MacBook2020.fritz.box>
This commit is contained in:
Christian Rotzoll 2020-09-16 13:33:14 +02:00 committed by rootzoll
parent 7126b57afd
commit 907dffc427
2 changed files with 33 additions and 20 deletions

View file

@ -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)

View file

@ -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"