DEV: Only mount top-level plugin symlinks
Sometimes plugins directories will end up with other symlinks (e.g. inside node_modules folders). This logic does not work with deeply nested symlinks, and they are unlikely to be necessary for the plugin to work. Therefore we should only look for symlinks in the top-level of the `plugins` directory
This commit is contained in:
parent
f700f3ef00
commit
ab23412113
|
@ -66,7 +66,7 @@ echo "Using data in: ${DATA_DIR}"
|
||||||
mkdir -p "${DATA_DIR}"
|
mkdir -p "${DATA_DIR}"
|
||||||
|
|
||||||
mount_plugin_symlinks=""
|
mount_plugin_symlinks=""
|
||||||
for symlink in $(find $PLUGINS_DIR -type l); do
|
for symlink in $(find $PLUGINS_DIR -depth 1 -type l); do
|
||||||
# `readlink -f` doesn't work on macOS, to fix it you need to override the `readlink` with `greadlink`
|
# `readlink -f` doesn't work on macOS, to fix it you need to override the `readlink` with `greadlink`
|
||||||
# > brew install coreutils
|
# > brew install coreutils
|
||||||
# > ln -s "$(which greadlink)" "$(dirname "$(which greadlink)")/readlink"
|
# > ln -s "$(which greadlink)" "$(dirname "$(which greadlink)")/readlink"
|
||||||
|
|
Loading…
Reference in New Issue