Skip to content

Commit 238cfc7

Browse files
committed
Remove eval echo "$(cat -)"
Everything still works as normal and this actually fixes complex startup commands as PR pelican-eggs#259 was supposed to do
1 parent 5e4e0a4 commit 238cfc7

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cassandra/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
3030
# variable format of "${VARIABLE}" before evaluating the string and automatically
3131
# replacing the values.
32-
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
32+
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
3333

3434
# Display the command we're running in the output, and then execute it with the env
3535
# from the container itself.

erlang/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'i
1616
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
1717
# variable format of "${VARIABLE}" before evaluating the string and automatically
1818
# replacing the values.
19-
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
19+
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
2020

2121
# Display the command we're running in the output, and then execute it with the env
2222
# from the container itself.

go/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ go version
4040
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
4141
# variable format of "${VARIABLE}" before evaluating the string and automatically
4242
# replacing the values.
43-
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
43+
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
4444

4545
# Display the command we're running in the output, and then execute it with the env
4646
# from the container itself.

java/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ java -version
4040
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
4141
# variable format of "${VARIABLE}" before evaluating the string and automatically
4242
# replacing the values.
43-
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
43+
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
4444

4545
# Display the command we're running in the output, and then execute it with the env
4646
# from the container itself.

oses/alpine/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cd /home/container || exit 1
3434
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
3535
# variable format of "${VARIABLE}" before evaluating the string and automatically
3636
# replacing the values.
37-
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
37+
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
3838

3939
# Display the command we're running in the output, and then execute it with the env
4040
# from the container itself.

voice/teaspeak/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ echo "installed youtube-dl Version:"
1515
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
1616
# variable format of "${VARIABLE}" before evaluating the string and automatically
1717
# replacing the values.
18-
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
18+
PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
1919

2020
# Display the command we're running in the output, and then execute it with the env
2121
# from the container itself.

0 commit comments

Comments
 (0)