From 7a7bc4ce85abfea92dc20eeb7d1e9c12481f9c14 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Thu, 2 Feb 2023 17:49:50 +0800 Subject: [PATCH] DFS_DEBUG to set -x --- tools/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/common.sh b/tools/common.sh index 926cae7..2a163b5 100755 --- a/tools/common.sh +++ b/tools/common.sh @@ -3,6 +3,7 @@ set -e THIS_DIR_COMMON_SH=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd ) export DOTFILES=$( cd "$THIS_DIR_COMMON_SH/.." && pwd ) if [[ -f ~/.config/dotfiles/env ]]; then set -a; source ~/.config/dotfiles/env; set +a; fi +if [[ "$DFS_DEBUG" == "1" ]]; then set -x; fi # parse args and set env, when it is sourced # todo: make this skipable