diff --git a/cassandra/entrypoint.sh b/cassandra/entrypoint.sh index d86fe45..b91ad64 100644 --- a/cassandra/entrypoint.sh +++ b/cassandra/entrypoint.sh @@ -29,10 +29,10 @@ fi # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# Display the command we're running in the output, and then execute it with the env -# from the container itself. -printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/erlang/entrypoint.sh b/erlang/entrypoint.sh index 51300ce..b657169 100644 --- a/erlang/entrypoint.sh +++ b/erlang/entrypoint.sh @@ -16,10 +16,10 @@ 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 # variable format of "${VARIABLE}" before evaluating the string and automatically # replacing the values. -PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# Display the command we're running in the output, and then execute it with the env -# from the container itself. -printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/go/entrypoint.sh b/go/entrypoint.sh index 898910a..5de2ba6 100644 --- a/go/entrypoint.sh +++ b/go/entrypoint.sh @@ -40,10 +40,10 @@ go 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# Display the command we're running in the output, and then execute it with the env -# from the container itself. -printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/java/entrypoint.sh b/java/entrypoint.sh index 3eb25df..23b662a 100755 --- a/java/entrypoint.sh +++ b/java/entrypoint.sh @@ -40,10 +40,10 @@ 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# Display the command we're running in the output, and then execute it with the env -# from the container itself. -printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -eval ${PARSED} +eval "$PARSED" diff --git a/oses/alpine/entrypoint.sh b/oses/alpine/entrypoint.sh index 2d07411..2b81022 100644 --- a/oses/alpine/entrypoint.sh +++ b/oses/alpine/entrypoint.sh @@ -34,11 +34,11 @@ cd /home/container || exit 1 # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# Display the command we're running in the output, and then execute it with the env -# from the container itself. -printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/voice/teaspeak/entrypoint.sh b/voice/teaspeak/entrypoint.sh index 16a19f1..6142333 100644 --- a/voice/teaspeak/entrypoint.sh +++ b/voice/teaspeak/entrypoint.sh @@ -15,10 +15,10 @@ echo "installed youtube-dl 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# Display the command we're running in the output, and then execute it with the env -# from the container itself. -printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED"