Skip to content

Commit

Permalink
fix: add sleep between sozo auth writer command (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l authored Sep 11, 2023
1 parent 660191a commit da8856c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/default_auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,42 @@ DECIDE_COMPONENTS=("Player" "Drug")

for component in ${CREATE_GAME_COMPONENTS[@]}; do
sozo auth writer $component create_game --world $WORLD_ADDRESS
sleep 0.1
done

for component in ${JOIN_GAME_COMPONENTS[@]}; do
sozo auth writer $component join_game --world $WORLD_ADDRESS
sleep 0.1
done

for component in ${SET_NAME_COMPONENTS[@]}; do
sozo auth writer $component set_name --world $WORLD_ADDRESS
sleep 0.1
done

for component in ${BUY_COMPONENTS[@]}; do
sozo auth writer $component buy --world $WORLD_ADDRESS
sleep 0.1
done

for component in ${SELL_COMPONENTS[@]}; do
sozo auth writer $component sell --world $WORLD_ADDRESS
sleep 0.1
done

for component in ${TRAVEL_COMPONENTS[@]}; do
sozo auth writer $component travel --world $WORLD_ADDRESS
sleep 0.1
done

for component in ${TRAVEL_COMPONENTS[@]}; do
sozo auth writer $component decide --world $WORLD_ADDRESS
sleep 0.1
done

for component in ${DECIDE_COMPONENTS[@]}; do
sozo auth writer $component decide --world $WORLD_ADDRESS
sleep 0.1
done

echo "Default authorizations have been successfully set."

1 comment on commit da8856c

@vercel
Copy link

@vercel vercel bot commented on da8856c Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rollyourown – ./

rollyourown.preview.cartridge.gg
rollyourown-git-main.preview.cartridge.gg

Please sign in to comment.