mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
fix if errors
This commit is contained in:
@@ -20,7 +20,8 @@ if [ ${#dynDomain} -gt 0 ]; then
|
|||||||
plus="${plus} / ${dynDomain}"
|
plus="${plus} / ${dynDomain}"
|
||||||
fi
|
fi
|
||||||
BACKTITLE="${localip} / ${hostname} / ${network} / ${chain}${plus}"
|
BACKTITLE="${localip} / ${hostname} / ${network} / ${chain}${plus}"
|
||||||
if [ ${runningRTL} -eq 1 ]; then
|
|
||||||
|
if [ "${rtlWebinterface}" == "on" ]; then
|
||||||
TITLE="Webinterface: http://${localip}:3000"
|
TITLE="Webinterface: http://${localip}:3000"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -47,10 +48,10 @@ fi
|
|||||||
|
|
||||||
# Depending Options
|
# Depending Options
|
||||||
openChannels=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net listchannels 2>/dev/null | jq '.[] | length')
|
openChannels=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net listchannels 2>/dev/null | jq '.[] | length')
|
||||||
if [ ${openChannels} -gt 0 ]; then
|
if [ ${#openChannels} -gt 0 ] && [ ${openChannels} -gt 0 ]; then
|
||||||
OPTIONS+=(CLOSEALL "Close all open Channels")
|
OPTIONS+=(CLOSEALL "Close all open Channels")
|
||||||
fi
|
fi
|
||||||
if [ "${runBehindTor}" = "on" ]; then
|
if [ "${runBehindTor}" == "on" ]; then
|
||||||
OPTIONS+=(NYX "Monitor TOR")
|
OPTIONS+=(NYX "Monitor TOR")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user