mirror of
https://github.com/pelican-eggs/games-standalone.git
synced 2024-11-23 10:52:34 +01:00
78f4e8f36b
Changed ``if [[ "${MAIN_FILE}" == *.js ]]`` To ``if [[ "${MAIN_FILE}" == "*.js" ]]`` The *.js without quotes compared MAIN_FILE to all files in the current directory that end with .js, resulting in errors like: ```bash :/home/container$ if [[ -d .git ]] && [[ ${AUTO_UPDATE} == "1" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then /usr/local/bin/npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then /usr/local/bin/npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f /home/container/package.json ]; then /usr/local/bin/npm install; fi; if [[ "${MAIN_FILE}" == start.js test.js ]]; then /usr/local/bin/node "/home/container/${MAIN_FILE}"; else /usr/local/bin/ts-node "${MAIN_FILE}"; fi /entrypoint.sh: eval: line 16: syntax error in conditional expression /entrypoint.sh: eval: line 16: syntax error near `test.js' /entrypoint.sh: eval: line 16: `if [[ -d .git ]] && [[ ${AUTO_UPDATE} == "1" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then /usr/local/bin/npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then /usr/local/bin/npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f /home/container/package.json ]; then /usr/local/bin/npm install; fi; if [[ "${MAIN_FILE}" == start.js test.js ]]; then /usr/local/bin/node "/home/container/${MAIN_FILE}"; else /usr/local/bin/ts-node "${MAIN_FILE}"; fi' ``` because it's interpreted as ``if [[ "${MAIN_FILE}" == start.js test.js ]];`` |
||
---|---|---|
.. | ||
c# | ||
dart | ||
deno | ||
golang | ||
java | ||
lua/luvit | ||
nodejs | ||
nodemon | ||
python | ||
rust | ||
README.md |
Generic Language
C#
C# A generic C# language egg running with dotnet
Dart
dart A generic Dart language egg
Deno
deno A generic Deno language egg
Golang
golang A generic Go language egg
Java
java A generic Java (and Kotlin) language egg
Lua
lua A generic Lua (Luvit) language egg
Node JS
nodejs A generic Node.JS egg
nodemon
nodemon A nodemon JavaScript and TypeScript language egg for running and automatically restarting the node application when file changes in the directory are detected
Python
python A generic Python language egg
Rust
rust A generic Rust language egg