source loag_helpers only once

This commit is contained in:
Gerhard Hoffmann 2022-06-02 17:27:30 +02:00
parent 2454b86e5e
commit 181af67033

View File

@ -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