From b216f6d02f5ea4f0d5687cc10719a0629d10ed7b Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Tue, 31 Jan 2023 13:13:03 +0800 Subject: [PATCH] $DFS_ORPHAN turns logger off --- tools/logger.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/logger.sh b/tools/logger.sh index 2096bb6..5c90797 100755 --- a/tools/logger.sh +++ b/tools/logger.sh @@ -4,6 +4,10 @@ set -e THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd ) source "$THIS_DIR/common.sh" +if [[ "$DFS_ORPHAN" == "1" ]]; then + exit 0 +fi + if [[ -x $(command -v hostname) ]]; then hostname=$(hostname) elif [[ -x $(command -v uname) ]]; then