fix network alias when not set

This commit is contained in:
rootzoll
2021-07-15 21:40:51 +02:00
parent bf691d594b
commit bbf0068878

View File

@@ -35,19 +35,19 @@ if [ $1 = getvars ];then
fi
echo "CHAIN=${chain}net"
echo "chain=${chain}"
if [ ${chain} = "test" ];then
if [ "${chain}" = "test" ];then
netprefix="t"
echo "netprefix=t"
L1rpcportmod=1
L2rpcportmod=1
echo "portprefix=1"
elif [ ${chain} = "sig" ];then
elif [ "${chain}" = "sig" ];then
netprefix="s"
echo "netprefix=s"
L1rpcportmod=3
L2rpcportmod=3
echo "portprefix=3"
elif [ ${chain} = "main" ];then
elif [ "${chain}" = "main" ];then
netprefix=""
echo "netprefix=''"
L1rpcportmod=""