File bin/modules.sh

Last commit: Mon Dec 9 23:03:31 2024 +0100	Jan Dankert	echo timestamp for modules.
1 #!/bin/bash 2 3 4 MODULES_DIR="$(dirname $0)/modules" 5 6 for module in $MODULES_DIR/*; do 7 8 filename=$(basename -- "$module") 9 extension="${filename##*.}" 10 modulename="${filename%.*}" 11 12 echo 13 echo "----------------------------------------------------------------------------" 14 echo "Module $modulename" 15 echo "----------------------------------------------------------------------------" 16 if is_on "${!modulename}"; then 17 repomodulename="repo_modules_${modulename}" 18 if is_on "${!repomodulename}"; then 19 echo "Started at: $(date -R)" 20 source $module 2 21 if [ $? -ne 0 ]; then 22 echo 23 echo "*** Module $modulename FAILED ***" 24 return 4 25 fi 26 echo "Module $modulename suceeded" 27 else 28 echo "Module is disabled by this project" 29 fi 30 else 31 echo "Module is disabled" 32 fi 33 echo 34 35 done
Download bin/modules.sh
History Mon, 9 Dec 2024 23:03:31 +0100 Jan Dankert echo timestamp for modules. Sun, 8 Dec 2024 22:41:59 +0100 Jan Dankert Fix: Checking for per project module config Sun, 8 Dec 2024 22:33:23 +0100 Jan Dankert Modules can be disabled by project configuration Tue, 26 Nov 2024 23:26:36 +0100 Jan Dankert New: Creating a project website