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:
David Taylor 2021-05-21 14:53:17 +01:00
parent f700f3ef00
commit ab23412113
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ echo "Using data in: ${DATA_DIR}"
mkdir -p "${DATA_DIR}"
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`
# > brew install coreutils
# > ln -s "$(which greadlink)" "$(dirname "$(which greadlink)")/readlink"