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
..
c# add Generic C# 2023-07-02 19:29:51 +02:00
dart Dart: add 2.18 and 2.18 image as an option 2023-02-24 17:59:32 +01:00
deno chore(generic): update generic readmes 2022-11-13 17:22:29 +00:00
golang chore(generic): update generic readmes 2022-11-13 17:22:29 +00:00
java Update README.md 2023-07-02 19:55:46 -03:00
lua/luvit chore(generic): update generic readmes 2022-11-13 17:22:29 +00:00
nodejs Fix error in startup command 2023-08-17 18:38:17 -07:00
nodemon chore(generic): update generic readmes 2022-11-13 17:22:29 +00:00
python Generic-python: force install container to be debian 11 2023-06-22 14:20:16 +02:00
rust chore(generic): update generic readmes 2022-11-13 17:22:29 +00:00
README.md Read me fix (#2396) 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