diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2014-10-03 18:58:59 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2014-10-03 23:45:26 +0000 |
commit | 0b17964131c78daa6a3ee01c41f47a43ee2e1947 (patch) | |
tree | 0d3d7013ab2f4e0b876d4b5cbbd4bbe0f134cf23 /qa | |
parent | ab72068565e4417799843d2445da39d9e98efffd (diff) |
Bugfix: Replace bashisms with standard sh in tests/tools
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/rpc-tests/send.sh | 2 | ||||
-rwxr-xr-x | qa/rpc-tests/walletbackup.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qa/rpc-tests/send.sh b/qa/rpc-tests/send.sh index bfbf791d07..8c0f114590 100755 --- a/qa/rpc-tests/send.sh +++ b/qa/rpc-tests/send.sh @@ -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 diff --git a/qa/rpc-tests/walletbackup.sh b/qa/rpc-tests/walletbackup.sh index 7444670980..b88d5920f7 100755 --- a/qa/rpc-tests/walletbackup.sh +++ b/qa/rpc-tests/walletbackup.sh @@ -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 |