eggs/generic
Loki 78f4e8f36b
Fix error in startup command
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 ]];``
2023-08-17 18:38:17 -07:00
..
2023-07-02 19:29:51 +02:00
2023-07-02 19:55:46 -03:00
2023-08-17 18:38:17 -07:00
2023-07-30 17:33:28 +02:00

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