Remove eval echo "$(cat -)"

Everything still works as normal and this actually fixes complex startup commands as PR #259 was supposed to do
This commit is contained in:
srnyx
2024-08-23 22:50:31 -04:00
parent 5e4e0a45a8
commit 238cfc7ded
6 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ 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' | eval echo "$(cat -)")
PARSED=$(echo -e ${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.