make help a seperate command

This commit is contained in:
rootzoll
2021-09-14 18:10:37 +02:00
parent 042aa84214
commit 0e8795942b
2 changed files with 54 additions and 55 deletions

View File

@@ -7,12 +7,14 @@ fi
# SHORTCUT COMMANDS you can call as user 'admin' from terminal
function blitz() {
cd /home/admin
./00raspiblitz.sh
}
# command: blitz
# calls the the raspiblitz mainmenu (shortcut)
function blitz() {
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then
echo "_commands.sh"
echo "Usage: command [options]"
function blitzhelp() {
echo
echo "Blitz commands are consolidated here."
echo
@@ -60,9 +62,6 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ] || [ "$1" = "--help" ]
echo "Extras:"
echo " whitepaper download the whitepaper from the blockchain to /home/admin/bitcoin.pdf"
echo " notifyme wrapper for blitz.notify.sh that will send a notification using the configured method and settings"
else
cd /home/admin
./00raspiblitz.sh
fi
}