add whitespace workaround to plugin list
This commit is contained in:
parent
fd2d79d0ac
commit
a890c6ae71
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ function plugin_list {
|
|||
checkPluginDir "${1}"
|
||||
|
||||
local plugin_dir="$(getValueByKey 'PODMAN_DIRECTORY')/${1}/data/plugins"
|
||||
local found_plugins=($(find "$plugin_dir" -iname "*.jar" -maxdepth 1 -type f -print))
|
||||
local found_plugins=($(find "$plugin_dir" -iname "*.jar" -maxdepth 1 -type f -print | tr ' ' ';'))
|
||||
|
||||
if [[ "${#found_plugins[@]}" -eq 0 ]]; then
|
||||
log i "No plugins found for '$1'"
|
||||
|
@ -48,6 +48,6 @@ function plugin_list {
|
|||
|
||||
log i "Found ${#found_plugins[@]} plugins:"
|
||||
for plugin in "${found_plugins[@]}"; do
|
||||
echo "- $(basename ${plugin})"
|
||||
echo "- $(basename ${plugin} | tr ';' ' ')"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue