feat: auto-install config/entertainment.env (default Al-Hasakah weather) on install

This commit is contained in:
Your Name
2026-08-05 14:59:50 +00:00
parent 2aaf5cff62
commit bd92c7f899
5 changed files with 32 additions and 6 deletions
+4 -2
View File
@@ -99,8 +99,10 @@ unset 'plugin_args[0]'
dir="$(plugin_dir)"
script="$(resolve_plugin "$dir" "$plugin")"
if ! output="$("$script" "$@")"; then
err "Plugin '$plugin' failed (exit $?)"
rc=0
output="$( "$script" "$@" )" || rc=$?
if [ "$rc" -ne 0 ]; then
err "Plugin '$plugin' failed (exit $rc)"
fi
[ -n "$output" ] || { warn "Plugin '$plugin' produced no output — nothing to send"; exit 0; }