add whitespace workaround to plugin list

This commit is contained in:
LinuxSquare 2025-04-10 22:41:18 +02:00
parent fd2d79d0ac
commit a890c6ae71

View file

@ -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
}