Skip to content

Commit a1ce1ff

Browse files
committed
up-generic.sh: better multi support
1 parent 1116045 commit a1ce1ff

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

up-generic.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
if [[ $# -ne 1 ]];
2+
then
3+
echo "up-generic.sh (# of instances)"
4+
exit
5+
fi
6+
7+
#This is for internal testing only
8+
declare ARCH=$(uname -m)-linux-gnu
9+
110
#This is for internal testing only
2-
: ${ARCH:=x86_64-linux-gnu}
3-
: ${bitcoind=10}
4-
: ${lnd=10}
5-
: ${tor=10}
11+
: ${ARCH:=$(uname -m)-linux-gnu}
12+
: ${bitcoind=${!#}}
13+
: ${lnd=${!#}}
14+
: ${tor=${!#}}
615

716
python plebnet_generate.py ARCH=$ARCH bitcoind=$bitcoind lnd=$lnd tor=$tor
817

0 commit comments

Comments
 (0)