From 805fb28257a3711ae67177c50e1a2dd37e80838c Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Thu, 21 Apr 2022 08:27:13 +0200 Subject: [PATCH] Fix loading *.d scripts --- rc/01-functions.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rc/01-functions.sh b/rc/01-functions.sh index fb94707..75fa539 100644 --- a/rc/01-functions.sh +++ b/rc/01-functions.sh @@ -1,5 +1,11 @@ # $LWS/rc/functions.sh +function xlog() { + if (( $LWS_DEBUG )); then + echo "$@" + fi +} + function jql() { jq -C . "$@" | less -r } @@ -52,7 +58,8 @@ function source_directory() { local mask="$1" for file in $mask; do if [[ -f "$file" ]]; then - echo "$file" + xlog "LOAD $file" + source "$file" fi done }