Bugfix: Replace bashisms with standard sh in tests/tools

This commit is contained in:
Luke Dashjr
2014-10-03 18:58:59 +00:00
parent ab72068565
commit 0b17964131
3 changed files with 15 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ if [ $# -eq 0 ]; then
exit 0
fi
if [ $1 == "-STOP" ]; then
if [ $1 = "-STOP" ]; then
if [ -s ${PIDFILE} ]; then
kill -s ${SIGNAL} $(<${PIDFILE})
fi

View File

@@ -149,7 +149,7 @@ echo "Creating transactions..."
function S {
TXID=$( $CLI -datadir=${D}/node${1} sendtoaddress ${2} "${3}" 0 )
if [[ $TXID == "" ]] ; then
if [ x$TXID = x ] ; then
echoerr "node${1}: error sending ${3} btc"
echo -n "node${1} balance: "
$CLI -datadir=${D}/node${1} getbalance "*" 0