mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-01-31 03:12:45 +00:00
19 lines
No EOL
723 B
Bash
Executable file
19 lines
No EOL
723 B
Bash
Executable file
#!/bin/bash
|
|
# Bash strict mode: http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
|
set -euo pipefail
|
|
|
|
|
|
source /baserow/plugins/utils.sh
|
|
|
|
simple_log "Installed Baserow Plugins:"
|
|
for plugin_folder in "$BASEROW_PLUGIN_DIR"/*; do
|
|
if [[ -d "$plugin_folder" ]]; then
|
|
plugin_name="$(basename -- "$plugin_folder")"
|
|
simple_log " - $plugin_name"
|
|
if [[ -f "$plugin_folder/baserow_plugin_info.json" ]]; then
|
|
plugin_info="$(cat "$plugin_folder/baserow_plugin_info.json")"
|
|
description=$(echo "$plugin_info" | python3 -c "import sys, json; print(json.load(sys.stdin).get('description', ''))" || "")
|
|
simple_log " description: $description"
|
|
fi
|
|
fi
|
|
done |