chaning parameter order

This commit is contained in:
rootzoll
2022-01-30 14:52:50 +01:00
parent 747500c990
commit 2d7a01cc4e
4 changed files with 17 additions and 15 deletions

View File

@@ -26,7 +26,19 @@ source <(/home/admin/_cache.sh get \
BTCRPCexplorer \ BTCRPCexplorer \
) )
# PARAMETER 1: forcing view on a lightning implementation # PARAMETER 1: forcing view on a given network
PARAMETER_CHAIN=$2
if [ "${PARAMETER_CHAIN}" == "mainnet" ]; then
chain="main"
fi
if [ "${PARAMETER_CHAIN}" == "testnet" ]; then
chain="test"
fi
if [ "${PARAMETER_CHAIN}" == "signet" ]; then
chain="sig"
fi
# PARAMETER 2: forcing view on a lightning implementation
PARAMETER_LIGHTNING=$1 PARAMETER_LIGHTNING=$1
if [ "${PARAMETER_LIGHTNING}" == "lnd" ]; then if [ "${PARAMETER_LIGHTNING}" == "lnd" ]; then
lightning="lnd" lightning="lnd"
@@ -38,17 +50,7 @@ if [ "${PARAMETER_LIGHTNING}" == "none" ]; then
lightning="" lightning=""
fi fi
# PARAMETER 2: forcing view on a given network
PARAMETER_CHAIN=$2
if [ "${PARAMETER_CHAIN}" == "mainnet" ]; then
chain="main"
fi
if [ "${PARAMETER_CHAIN}" == "testnet" ]; then
chain="test"
fi
if [ "${PARAMETER_CHAIN}" == "signet" ]; then
chain="sig"
fi
# generate netprefix # generate netprefix
netprefix=${chain:0:1} netprefix=${chain:0:1}

View File

@@ -134,7 +134,7 @@ while :
fi fi
# no special case - show status display # no special case - show status display
/home/admin/00infoBlitz.sh $lightning ${chain}net /home/admin/00infoBlitz.sh ${chain}net $lightning
sleep 5 sleep 5
done done

View File

@@ -198,7 +198,7 @@ case $CHOICE in
do do
# show the same info as on LCD screen # show the same info as on LCD screen
/home/admin/00infoBlitz.sh ${lightning} ${chain}net /home/admin/00infoBlitz.sh ${chain}net ${lightning}
# wait 6 seconds for user exiting loop # wait 6 seconds for user exiting loop
echo "" echo ""

View File

@@ -193,7 +193,7 @@ function status() {
while : while :
do do
# show the same info as on LCD screen # show the same info as on LCD screen
# 00infoBlitz.sh <cl|lnd> <testnet|mainnet|signet> # 00infoBlitz.sh <testnet|mainnet|signet> <cl|lnd>
/home/admin/00infoBlitz.sh $1 $2 /home/admin/00infoBlitz.sh $1 $2
# wait 6 seconds for user exiting loop # wait 6 seconds for user exiting loop
#echo #echo