From 181af670335ba1374e8cc6b04ded7350cd5e066b Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 2 Jun 2022 17:27:30 +0200 Subject: [PATCH] source loag_helpers only once --- log_helpers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log_helpers b/log_helpers index 2148a25..67a1b33 100755 --- a/log_helpers +++ b/log_helpers @@ -1,7 +1,7 @@ #!/bin/bash # set -x -if [ ${log_helpers_sourced:-1} = "1" ]; then # include ony once +if [ "${log_helpers_sourced:-1}" = "1" ]; then # include only once readonly log_helpers_sourced=${BASH_SOURCE[0]} readonly log_file=/var/log/update_controller.log