add quotes

This commit is contained in:
openoms
2021-09-27 10:40:48 +01:00
parent 56309541fe
commit d84a9c2387
2 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ if [ $# -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
echo "Install, remove, connect or get info about the Sparko plugin for C-lightning" echo "Install, remove, connect or get info about the Sparko plugin for C-lightning"
echo "version: $SPARKOVERSION" echo "version: $SPARKOVERSION"
echo "Usage:" echo "Usage:"
echo "cl-plugin.sparko.sh [on|off|menu|connect] [testnet|mainnet|signet]" echo "cl-plugin.sparko.sh [on|off|menu|connect] [testnet|mainnet|signet] [norestart]"
echo echo
exit 1 exit 1
fi fi
@@ -104,7 +104,7 @@ if [ $1 = connect ];then
exit 0 exit 0
fi fi
if [ $1 = on ];then if [ "$1" = "on" ];then
echo "# Detect CPU architecture ..." echo "# Detect CPU architecture ..."
isARM=$(uname -m | grep -c 'arm') isARM=$(uname -m | grep -c 'arm')
isAARCH64=$(uname -m | grep -c 'aarch64') isAARCH64=$(uname -m | grep -c 'aarch64')
@@ -176,7 +176,7 @@ sparko-keys=${masterkeythatcandoeverything}; ${secretaccesskeythatcanreadstuff}:
sudo sed -i "s/^${netprefix}sparko=.*/${netprefix}sparko=on/g" /mnt/hdd/raspiblitz.conf sudo sed -i "s/^${netprefix}sparko=.*/${netprefix}sparko=on/g" /mnt/hdd/raspiblitz.conf
source /home/admin/raspiblitz.info source /home/admin/raspiblitz.info
if [ "${state}" == "ready" ]; then if [ "${state}" == "ready" ] && [ "$3" != "norestart" ]; then
echo "# Restart the ${netprefix}lightningd.service to activate Sparko" echo "# Restart the ${netprefix}lightningd.service to activate Sparko"
sudo systemctl restart ${netprefix}lightningd sudo systemctl restart ${netprefix}lightningd
fi fi
@@ -188,7 +188,7 @@ sparko-keys=${masterkeythatcandoeverything}; ${secretaccesskeythatcanreadstuff}:
fi fi
if [ $1 = off ];then if [ "$1" = "off" ];then
# delete symlink # delete symlink
sudo rm -rf /home/bitcoin/${netprefix}cl-plugins-enabled/sparko sudo rm -rf /home/bitcoin/${netprefix}cl-plugins-enabled/sparko

View File

@@ -16,7 +16,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
exit 1 exit 1
fi fi
if [ $1 = on ];then if [ "$1" = "on" ];then
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $3) source <(/home/admin/config.scripts/network.aliases.sh getvars cl $3)