Remove uneeded ${curlies}

For requested change
https://github.com/bisq-network/bisq/pull/5093#discussion_r560941709
This commit is contained in:
ghubstan 2021-01-20 11:52:29 -03:00
parent 8b4938a9eb
commit cb96f27f1c
No known key found for this signature in database
GPG key ID: E35592D6800A861E
2 changed files with 10 additions and 10 deletions

View file

@ -58,7 +58,7 @@ registerdisputeagents() {
getbtcoreaddress() { getbtcoreaddress() {
CMD="bitcoin-cli -regtest -rpcport=19443 -rpcuser=apitest -rpcpassword=apitest getnewaddress" CMD="bitcoin-cli -regtest -rpcport=19443 -rpcuser=apitest -rpcpassword=apitest getnewaddress"
NEW_ADDRESS=$(${CMD}) NEW_ADDRESS=$($CMD)
echo "${NEW_ADDRESS}" echo "${NEW_ADDRESS}"
} }
@ -81,7 +81,7 @@ genbtcblocks() {
genbtcblock() { genbtcblock() {
CMD="$1" CMD="$1"
NEW_BLOCK_HASH=$(${CMD} | sed -n '2p') NEW_BLOCK_HASH=$($CMD | sed -n '2p')
echo "$NEW_BLOCK_HASH" echo "$NEW_BLOCK_HASH"
} }
@ -99,7 +99,7 @@ printbalances() {
getpaymentaccountmethods() { getpaymentaccountmethods() {
CMD="$1" CMD="$1"
CMD_OUTPUT=$(${CMD}) CMD_OUTPUT=$($CMD)
commandalert $? "Could not get payment method ids." commandalert $? "Could not get payment method ids."
printdate "Payment Method IDs:" printdate "Payment Method IDs:"
echo "${CMD_OUTPUT}" echo "${CMD_OUTPUT}"
@ -107,7 +107,7 @@ getpaymentaccountmethods() {
getpaymentaccountform() { getpaymentaccountform() {
CMD="$1" CMD="$1"
CMD_OUTPUT=$(${CMD}) CMD_OUTPUT=$($CMD)
commandalert $? "Could not get new payment account form." commandalert $? "Could not get new payment account form."
echo "${CMD_OUTPUT}" echo "${CMD_OUTPUT}"
} }
@ -115,7 +115,7 @@ getpaymentaccountform() {
editpaymentaccountform() { editpaymentaccountform() {
COUNTRY_CODE="$1" COUNTRY_CODE="$1"
CMD="python3 ${APITEST_SCRIPTS_HOME}/editf2faccountform.py $COUNTRY_CODE" CMD="python3 ${APITEST_SCRIPTS_HOME}/editf2faccountform.py $COUNTRY_CODE"
CMD_OUTPUT=$(${CMD}) CMD_OUTPUT=$($CMD)
commandalert $? "Could not edit payment account form." commandalert $? "Could not edit payment account form."
printdate "Saved payment account form as ${F2F_ACCT_FORM}." printdate "Saved payment account form as ${F2F_ACCT_FORM}."
} }
@ -138,7 +138,7 @@ getnewpaymentacctcurrency() {
createpaymentacct() { createpaymentacct() {
CMD="$1" CMD="$1"
CMD_OUTPUT=$(${CMD}) CMD_OUTPUT=$($CMD)
commandalert $? "Could not create new payment account." commandalert $? "Could not create new payment account."
echo "${CMD_OUTPUT}" echo "${CMD_OUTPUT}"
} }
@ -147,7 +147,7 @@ getpaymentaccounts() {
PORT="$1" PORT="$1"
printcmd "${CLI_BASE} --port=${PORT} getpaymentaccts" printcmd "${CLI_BASE} --port=${PORT} getpaymentaccts"
CMD="$CLI_BASE --port=$PORT getpaymentaccts" CMD="$CLI_BASE --port=$PORT getpaymentaccts"
CMD_OUTPUT=$(${CMD}) CMD_OUTPUT=$($CMD)
commandalert $? "Could not get payment accounts." commandalert $? "Could not get payment accounts."
echo "${CMD_OUTPUT}" echo "${CMD_OUTPUT}"
} }
@ -168,7 +168,7 @@ createoffer() {
getcurrentprice() { getcurrentprice() {
CURRENCY_CODE="$1" CURRENCY_CODE="$1"
CMD="python3 ${APITEST_SCRIPTS_HOME}/getmktprice.py ${CURRENCY_CODE}" CMD="python3 ${APITEST_SCRIPTS_HOME}/getmktprice.py ${CURRENCY_CODE}"
PRICE=$(${CMD}) PRICE=$($CMD)
echo "${PRICE}" echo "${PRICE}"
} }

View file

@ -73,8 +73,8 @@ cat "${APITEST_SCRIPTS_HOME}/${F2F_ACCT_FORM}"
# Remove the autogenerated json template because we are going to use one created by a python script in the next step. # Remove the autogenerated json template because we are going to use one created by a python script in the next step.
CMD="rm -v ${APP_HOME}/f2f_*.json" CMD="rm -v ${APP_HOME}/f2f_*.json"
DELETE_JSON_TEMPLATE=$(${CMD}) DELETE_JSON_TEMPLATE=$($CMD)
echo "$DELETE_JSON_TEMPLATE" printdate "$DELETE_JSON_TEMPLATE"
printbreak printbreak
printdate "Bob and Alice create their face to face ${COUNTRY_CODE} payment accounts." printdate "Bob and Alice create their face to face ${COUNTRY_CODE} payment accounts."