mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-02 14:38:59 +00:00
Actually correct command running...
This commit is contained in:
1 parent
0248368c01
commit
5919abae88
8 files changed
+25
-20
No files matched your search
@@ -34,6 +34,7 @@ export INTERNAL_IP
|
||||
cd /home/container || exit 1
|
||||
|
||||
# Print Node.js version
|
||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mnode -v\n"
|
||||
node -v
|
||||
|
||||
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||
@@ -44,4 +45,5 @@ 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 the env
|
||||
# from the container itself.
|
||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
||||
exec env "$PARSED"
|
||||
# shellcheck disable=SC2086
|
||||
exec env ${PARSED}
|
||||
Reference in new issue
Block a user