Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Jul 20, 2024
1 parent 6911990 commit 0d7142a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ if [[ "$AUTOMATIC_UPDATING" == "1" ]]; then

# Check if .success is true
if [ "$(echo $API_RESPONSE | jq -r '.success')" = "true" ]; then
# Check if .build.id is .latest.id
if [ "$(echo $API_RESPONSE | jq -r '.build.id')" != "$(echo $API_RESPONSE | jq -r '.latest.id')" ]; then
echo -e "\033[1m\033[33mcontainer@pterodactyl~ \033[0mNew build found. Updating server..."

$BUILD_ID="$(echo $API_RESPONSE | jq -r '.build.id')"
BUILD_ID=$(echo $API_RESPONSE | jq -r '.latest.id')
bash <(curl -s "https://versions.mcjars.app/api/v1/script/$BUILD_ID/bash?echo=false")

echo -e "\033[1m\033[33mcontainer@pterodactyl~ \033[0mServer has been updated"
Expand Down

0 comments on commit 0d7142a

Please sign in to comment.