Skip to content

Commit

Permalink
fix: bug in yq -r
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 committed May 6, 2024
1 parent 4fa14e2 commit 4a275d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mint_mock_token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fi;

# Get mock token address from deployment output using jq
mock_token_address=$(cat "contracts/script/output/devnet/strategy_deployment_output.json" | jq -r '.erc20Mock')
operator_address=$(cat "$CONFIG_FILE" | yq -r '.operator.address')
operator_address=$(cat "$CONFIG_FILE" | yq --unwrapScalar '.operator.address')

if [[ "$mock_token_address" -eq "" ]]; then
if [ "$mock_token_address" = "" ]; then
echo "Mock token address is empty, please deploy the contracts first"
exit 1
fi;
Expand Down

0 comments on commit 4a275d0

Please sign in to comment.