Skip to content

Commit

Permalink
Add better parsing for the entrypoint
Browse files Browse the repository at this point in the history
This would cause some variables not to parse correctly when running the entrypoint.
  • Loading branch information
garrettsummerfi3ld committed Jan 14, 2025
1 parent ffbee5c commit 710d83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ java -version
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values.
PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g')
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")

# Display the command we're running in the output, and then execute it with eval
printf "\033[1m\033[33mslice@pizzabyte~ \033[0m"
Expand Down

0 comments on commit 710d83b

Please sign in to comment.