srnyx
2024-08-25 21:21:13 -04:00
parent 2f0b10b51d
commit 54fa390139
6 changed files with 30 additions and 30 deletions

View File

@@ -29,10 +29,10 @@ 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 -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 # Display the command we're running in the output, and then execute it with eval
# from the container itself. printf "\033[1m\033[33mcontainer@pelican~ \033[0m"
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" echo "$PARSED"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
exec env ${PARSED} eval "$PARSED"

View File

@@ -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 # 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 -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 # Display the command we're running in the output, and then execute it with eval
# from the container itself. printf "\033[1m\033[33mcontainer@pelican~ \033[0m"
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" echo "$PARSED"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
exec env ${PARSED} eval "$PARSED"

View File

@@ -40,10 +40,10 @@ 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 -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 # Display the command we're running in the output, and then execute it with eval
# from the container itself. printf "\033[1m\033[33mcontainer@pelican~ \033[0m"
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" echo "$PARSED"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
exec env ${PARSED} eval "$PARSED"

View File

@@ -40,10 +40,10 @@ 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 -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 # Display the command we're running in the output, and then execute it with eval
# from the container itself. printf "\033[1m\033[33mcontainer@pelican~ \033[0m"
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" echo "$PARSED"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
eval ${PARSED} eval "$PARSED"

View File

@@ -34,11 +34,11 @@ 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 -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 # Display the command we're running in the output, and then execute it with eval
# from the container itself. printf "\033[1m\033[33mcontainer@pelican~ \033[0m"
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" echo "$PARSED"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
exec env ${PARSED} eval "$PARSED"

View File

@@ -15,10 +15,10 @@ 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 -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 # Display the command we're running in the output, and then execute it with eval
# from the container itself. printf "\033[1m\033[33mcontainer@pelican~ \033[0m"
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" echo "$PARSED"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
exec env ${PARSED} eval "$PARSED"