Skip to content

Commit

Permalink
revert to cat for bash 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Dec 10, 2021
1 parent 73b34ed commit f7672a6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
12 changes: 6 additions & 6 deletions recipes/mintArmorRecipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ CHAINMAIL_ID="chainmail"
BRIGANDINE_ID="brigandine"
PLATEARMOR_ID="plateArmor"

PADDEDVEST=$(<./items/$PADDEDVEST_ID.json)
GAMBESON=$(<./items/$GAMBESON_ID.json)
CHAINMAIL=$(<./items/$CHAINMAIL_ID.json)
BRIGANDINE=$(<./items/$BRIGANDINE_ID.json)
PLATEARMOR=$(<./items/$PLATEARMOR_ID.json)
PADDEDVEST=`cat ./items/$PADDEDVEST_ID.json`
GAMBESON=`cat ./items/$GAMBESON_ID.json`
CHAINMAIL=`cat ./items/$CHAINMAIL_ID.json`
BRIGANDINE=`cat ./items/$BRIGANDINE_ID.json`
PLATEARMOR=`cat ./items/$PLATEARMOR_ID.json`

pylonsd tx pylons create-recipe $GAME_NAME mintarmor mintarmor "mint a random piece of armor" $VERSION '[{"coins": [{"denom": "'$TOKEN_NAME_EXT'", "amount": "100"}]}]' '[]' '{"coinOutputs": [],"itemOutputs": ['"$PADDEDVEST"','"$GAMBESON"','"$CHAINMAIL"','"$BRIGANDINE"','"$PLATEARMOR"'],"itemModifyOutputs":[]}' '[{"entryIDs": ["'$PADDEDVEST_ID'"],"weight": 1},{"entryIDs": ["'$GAMBESON_ID'"],"weight": 1},{"entryIDs": ["'$CHAINMAIL_ID'"],"weight": 1},{"entryIDs": ["'$BRIGANDINE_ID'"],"weight": 1},{"entryIDs": ["'$PLATEARMOR_ID'"],"weight": 1}]' 1 $COSTPERBLOCK true "" --from $ACC_NAME
pylonsd tx pylons create-recipe $GAME_NAME mintarmor mintarmor "mint a random piece of armor" $VERSION '[{"coins": [{"denom": "'$TOKEN_NAME_EXT'", "amount": "100"}]}]' '[]' '{"coinOutputs": [],"itemOutputs": ['$PADDEDVEST','$GAMBESON','$CHAINMAIL','$BRIGANDINE','$PLATEARMOR'],"itemModifyOutputs":[]}' '[{"entryIDs": ["'$PADDEDVEST_ID'"],"weight": 1},{"entryIDs": ["'$GAMBESON_ID'"],"weight": 1},{"entryIDs": ["'$CHAINMAIL_ID'"],"weight": 1},{"entryIDs": ["'$BRIGANDINE_ID'"],"weight": 1},{"entryIDs": ["'$PLATEARMOR_ID'"],"weight": 1}]' 1 $COSTPERBLOCK true "" --from $ACC_NAME
10 changes: 5 additions & 5 deletions recipes/mintShieldRecipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ KITESHIELD_ID="kiteShield"
HEATERSHIELD_ID="heaterShield"
TOWERSHIELD_ID="towerShield"

ROUNDSHIELD=$(<./items/$ROUNDSHIELD_ID.json)
KITESHIELD=$(<./items/$KITESHIELD_ID.json)
HEATERSHIELD=$(<./items/$HEATERSHIELD_ID.json)
TOWERSHIELD=$(<./items/$TOWERSHIELD_ID.json)
ROUNDSHIELD=`cat ./items/$ROUNDSHIELD_ID.json`
KITESHIELD=`cat ./items/$KITESHIELD_ID.json`
HEATERSHIELD=`cat ./items/$HEATERSHIELD_ID.json`
TOWERSHIELD=`cat ./items/$TOWERSHIELD_ID.json`

pylonsd tx pylons create-recipe $GAME_NAME mintshield mintshield "mint a random shield" $VERSION '[{"coins": [{"denom": "'$TOKEN_NAME_EXT'", "amount": "100"}]}]' '[]' '{"coinOutputs": [],"itemOutputs": ['"$ROUNDSHIELD"','"$KITESHIELD"','"$HEATERSHIELD"','"$TOWERSHIELD"'],"itemModifyOutputs":[]}' '[{"entryIDs": ["'$ROUNDSHIELD_ID'"],"weight": 1},{"entryIDs": ["'$KITESHIELD_ID'"],"weight": 1},{"entryIDs": ["'$HEATERSHIELD_ID'"],"weight": 1},{"entryIDs": ["'$TOWERSHIELD_ID'"],"weight": 1}]' 1 $COSTPERBLOCK true "" --from $ACC_NAME
pylonsd tx pylons create-recipe $GAME_NAME mintshield mintshield "mint a random shield" $VERSION '[{"coins": [{"denom": "'$TOKEN_NAME_EXT'", "amount": "100"}]}]' '[]' '{"coinOutputs": [],"itemOutputs": ['$ROUNDSHIELD','$KITESHIELD','$HEATERSHIELD','$TOWERSHIELD'],"itemModifyOutputs":[]}' '[{"entryIDs": ["'$ROUNDSHIELD_ID'"],"weight": 1},{"entryIDs": ["'$KITESHIELD_ID'"],"weight": 1},{"entryIDs": ["'$HEATERSHIELD_ID'"],"weight": 1},{"entryIDs": ["'$TOWERSHIELD_ID'"],"weight": 1}]' 1 $COSTPERBLOCK true "" --from $ACC_NAME
27 changes: 13 additions & 14 deletions recipes/mintWeaponRecipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@ POLEAXE_ID="poleAxe"
SPEAR_ID="spear"
AXE_ID="axe"

SWORD=$(<./items/$SWORD_ID.json)
GREATSWORD=$(<./items/$GREATSWORD_ID.json)
BOW=$(<./items/$BOW_ID.json)
CROSSBOW=$(<./items/$CROSSBOW_ID.json)
DAGGER=$(<./items/$DAGGER_ID.json)
FLAIL=$(<./items/$FLAIL_ID.json)
JAVELIN=$(<./items/$JAVELIN_ID.json)
MACE=$(<./items/$MACE_ID.json)
MAUL=$(<./items/$MAUL_ID.json)
POLEAXE=$(<./items/$POLEAXE_ID.json)
SPEAR=$(<./items/$SPEAR_ID.json)
AXE=$(<./items/$AXE_ID.json)
SWORD=`cat ./items/$SWORD_ID.json`
GREATSWORD=`cat ./items/$GREATSWORD_ID.json`
BOW=`cat ./items/$BOW_ID.json`
CROSSBOW=`cat ./items/$CROSSBOW_ID.json`
DAGGER=`cat ./items/$DAGGER_ID.json`
FLAIL=`cat ./items/$FLAIL_ID.json`
JAVELIN=`cat ./items/$JAVELIN_ID.json`
MACE=`cat ./items/$MACE_ID.json`
MAUL=`cat ./items/$MAUL_ID.json`
POLEAXE=`cat ./items/$POLEAXE_ID.json`
SPEAR=`cat ./items/$SPEAR_ID.json`
AXE=`cat ./items/$AXE_ID.json`


pylonsd tx pylons create-recipe $GAME_NAME mintweapon mintweapon "mint a random weapon" $VERSION '[{"coins": [{"denom": "'$TOKEN_NAME_EXT'", "amount": "100"}]}]' '[]' '{"coinOutputs": [],"itemOutputs": ['"$SWORD"','"$GREATSWORD"','"$AXE"','"$BOW"','"$CROSSBOW"','"$DAGGER"','"$FLAIL"','"$JAVELIN"','"$MACE"','"$MAUL"','"$POLEAXE"','"$SPEAR"'],"itemModifyOutputs":[]}' '[{"entryIDs": ["'$SPEAR_ID'"],"weight": 1},{"entryIDs": ["'$POLEAXE_ID'"],"weight": 1},{"entryIDs": ["'$MAUL_ID'"],"weight": 1},{"entryIDs": ["'$MACE_ID'"],"weight": 1},{"entryIDs": ["'$JAVELIN_ID'"],"weight": 1},{"entryIDs": ["'$FLAIL_ID'"],"weight": 1},{"entryIDs": ["'$DAGGER_ID'"],"weight": 1},{"entryIDs": ["'$CROSSBOW_ID'"],"weight": 1},{"entryIDs": ["'$BOW_ID'"],"weight": 1},{"entryIDs": ["'$AXE_ID'"],"weight": 1},{"entryIDs": ["'$SWORD_ID'"],"weight": 1},{"entryIDs": ["'$GREATSWORD_ID'"],"weight": 1}]' 1 $COSTPERBLOCK true "" --from $ACC_NAME
pylonsd tx pylons create-recipe $GAME_NAME mintweapon mintweapon "mint a random weapon" $VERSION '[{"coins": [{"denom": "'$TOKEN_NAME_EXT'", "amount": "100"}]}]' '[]' '{"coinOutputs": [],"itemOutputs": ['$SWORD','$GREATSWORD','$AXE','$BOW','$CROSSBOW','$DAGGER','$FLAIL','$JAVELIN','$MACE','$MAUL','$POLEAXE','$SPEAR'],"itemModifyOutputs":[]}' '[{"entryIDs": ["'$SPEAR_ID'"],"weight": 1},{"entryIDs": ["'$POLEAXE_ID'"],"weight": 1},{"entryIDs": ["'$MAUL_ID'"],"weight": 1},{"entryIDs": ["'$MACE_ID'"],"weight": 1},{"entryIDs": ["'$JAVELIN_ID'"],"weight": 1},{"entryIDs": ["'$FLAIL_ID'"],"weight": 1},{"entryIDs": ["'$DAGGER_ID'"],"weight": 1},{"entryIDs": ["'$CROSSBOW_ID'"],"weight": 1},{"entryIDs": ["'$BOW_ID'"],"weight": 1},{"entryIDs": ["'$AXE_ID'"],"weight": 1},{"entryIDs": ["'$SWORD_ID'"],"weight": 1},{"entryIDs": ["'$GREATSWORD_ID'"],"weight": 1}]' 1 $COSTPERBLOCK true "" --from $ACC_NAME

0 comments on commit f7672a6

Please sign in to comment.