From be276a892145b6a4e1dad6e61085a07ca6a0bb69 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 16 Feb 2024 16:29:44 +0100 Subject: [slx-addons] Tweak log output a bit --- modules.d/slx-addons/hooks/s3-setup-addons.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules.d/slx-addons/hooks/s3-setup-addons.sh b/modules.d/slx-addons/hooks/s3-setup-addons.sh index 5068d2c2..2dcb364c 100755 --- a/modules.d/slx-addons/hooks/s3-setup-addons.sh +++ b/modules.d/slx-addons/hooks/s3-setup-addons.sh @@ -51,7 +51,7 @@ setup_addon() { local addon_dir="$1" cd "$addon_dir" || return 1 if ! bash addon-required 2>&1 ; then - echo "'$addon_dir/addon-required' missing or returned non-zero, skipping..." + echo "'./addon-required' missing or returned non-zero, skipping..." return 1 fi # purge addon-* files @@ -87,9 +87,10 @@ setup_addon() { active=() for addon in "${NEWROOT}/opt/openslx/addons/"*; do + echo "Checking addon ${addon##*/}..." if setup_addon "$addon"; then - active+=("${addon#"${NEWROOT}/opt/openslx/addons/"}") - echo "Activated '$addon' (@ $(date +%s))" + active+=( "${addon##*/}" ) + echo "Activated '${addon##*/}'" fi done -- cgit v1.2.3-55-g7522