mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-10 05:01:24 +01:00
* Set nullglob * Replace with a if statement (because we're using sh) * combine if (cherry picked from commit 1c30bec083e7460c0ca70696c644fe2a1dc5b3e0) Co-authored-by: Will Hunt <will@half-shot.uk>
This commit is contained in:
parent
9f15532d12
commit
4f702b70aa
@ -14,10 +14,9 @@ entrypoint_log() {
|
|||||||
mkdir -p /tmp/element-web-config
|
mkdir -p /tmp/element-web-config
|
||||||
cp /app/config*.json /tmp/element-web-config/
|
cp /app/config*.json /tmp/element-web-config/
|
||||||
|
|
||||||
# If there are modules to be loaded
|
# If the module directory exists AND the module directory has modules in it
|
||||||
if [ -d "/modules" ]; then
|
if [ -d "/modules" ] && [ "$( ls -A '/modules' )" ]; then
|
||||||
cd /modules
|
cd /modules
|
||||||
|
|
||||||
for MODULE in *
|
for MODULE in *
|
||||||
do
|
do
|
||||||
# If the module has a package.json, use its main field as the entrypoint
|
# If the module has a package.json, use its main field as the entrypoint
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user