fixtures/scripts/push-and-pull.sh in zold-0.12.1 vs fixtures/scripts/push-and-pull.sh in zold-0.13.0
- old
+ new
@@ -1,14 +1,9 @@
#!/bin/bash
-set -x
-set -e
-shopt -s expand_aliases
-alias zold="$1 --ignore-global-config --trace --ignore-this-stupid-option --network=test"
+port=$(reserve_port)
-port=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`
-
mkdir server
cd server
zold node --trace --invoice=NOPREFIX@ffffffffffffffff \
--host=localhost --port=${port} --bind-port=${port} \
--threads=0 --standalone &
@@ -25,11 +20,11 @@
zold remote add localhost ${port}
zold remote trim
zold remote show
zold --public-key=id_rsa.pub create 0000000000000000
-target=`zold create --public-key=id_rsa.pub`
-invoice=`zold invoice ${target}`
+target=$(zold create --public-key=id_rsa.pub)
+invoice=$(zold invoice ${target})
zold pay --private-key=id_rsa 0000000000000000 ${invoice} 14.99 'To save the world!'
zold propagate 0000000000000000
zold show
zold show 0000000000000000
zold taxes debt 0000000000000000