Change echo "${STARTUP}" to echo -e ${STARTUP}

All other `entrypoint.sh` files use this change, so just making the incorrect ones match the rest
It also caused issues with complex startup commands that utilize if statements and such, so hopefully this fixes those issues
This commit is contained in:
srnyx
2024-08-22 18:34:03 -04:00
parent 7b185c1dac
commit 7ac950ba0e
6 changed files with 6 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ fi
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically # variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values. # replacing the values.
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") PARSED=$(echo -e ${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 the env # Display the command we're running in the output, and then execute it with the env
# from the container itself. # from the container itself.

View File

@@ -16,7 +16,7 @@ erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'i
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically # variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values. # replacing the values.
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") PARSED=$(echo -e ${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 the env # Display the command we're running in the output, and then execute it with the env
# from the container itself. # from the container itself.

View File

@@ -40,7 +40,7 @@ go version
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically # variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values. # replacing the values.
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") PARSED=$(echo -e ${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 the env # Display the command we're running in the output, and then execute it with the env
# from the container itself. # from the container itself.

View File

@@ -40,7 +40,7 @@ java -version
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically # variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values. # replacing the values.
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") PARSED=$(echo -e ${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 the env # Display the command we're running in the output, and then execute it with the env
# from the container itself. # from the container itself.

View File

@@ -34,7 +34,7 @@ cd /home/container || exit 1
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically # variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values. # replacing the values.
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") PARSED=$(echo -e ${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 the env # Display the command we're running in the output, and then execute it with the env
# from the container itself. # from the container itself.

View File

@@ -15,7 +15,7 @@ echo "installed youtube-dl Version:"
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically # variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values. # replacing the values.
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") PARSED=$(echo -e ${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 the env # Display the command we're running in the output, and then execute it with the env
# from the container itself. # from the container itself.