From 60f934680d9d30ca50210780f9c917b2913a6939 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 30 Sep 2023 17:28:50 -0600 Subject: [PATCH] Nix some debug output --- would-reformat.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/would-reformat.sh b/would-reformat.sh index fcaf3ec..aeafa40 100755 --- a/would-reformat.sh +++ b/would-reformat.sh @@ -10,20 +10,14 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # wrflog before sourcing common funcs, I think i am in dir: $(pwd) source "$DIR/_reformat-common.bash" -wrflog asdf asdf asdf - file="$1" export PROJECT_ROOT=$(project_root "$file") export WF_ROOT=$(wf_root) ## fixme use realpath or something on "$file" - - file_type=$(sniff_file_type "$file") -wrflog got file_type "$file_type" - export WOULD_REFORMAT=would_reformat if [[ $file_type = "javascript" || \ @@ -37,9 +31,6 @@ if [[ $file_type = "javascript" || \ $file_type == "css" || \ $file_type == "scss" || \ $file_type = "sh" ]]; then - wrflog will run thing - wrflog "$(wfroot "$DIR")" - wrflog "prettier: $(ls -l "$(wfroot "$DIR")"/./prettier.sh)" out=$("$(wfroot "$DIR")"/./prettier.sh "$file" 2>&1 > /dev/null) out=$("$WF_ROOT"/./prettier.sh "$file" 2>&1 >/dev/null) retval="$?"