Commit a5aca882 authored by harrylee's avatar harrylee Committed by vipwzw

fix a bug for shellcheck

parent eb71b43f
......@@ -236,10 +236,10 @@ function tx_wait() {
exit 1
fi
local req=\"${2}\"
local txhash=$(${1} tx query -s ${2} | jq ".tx.hash")
local txhash=$(${1} tx query -s "${2}" | jq ".tx.hash")
local count=0
while true; do
txhash=$(${1} tx query -s ${2} | jq ".tx.hash")
txhash=$(${1} tx query -s "${2}" | jq ".tx.hash")
if [ "${txhash}" != "${req}" ]; then
count=$((count + 1))
echo "${txhash}" "${req}" "${count}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment