Nix some debug output

This commit is contained in:
Michael Wolf
2023-09-30 17:28:50 -06:00
parent bb9b380382
commit 60f934680d

View File

@@ -10,20 +10,14 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# wrflog before sourcing common funcs, I think i am in dir: $(pwd) # wrflog before sourcing common funcs, I think i am in dir: $(pwd)
source "$DIR/_reformat-common.bash" source "$DIR/_reformat-common.bash"
wrflog asdf asdf asdf
file="$1" file="$1"
export PROJECT_ROOT=$(project_root "$file") export PROJECT_ROOT=$(project_root "$file")
export WF_ROOT=$(wf_root) export WF_ROOT=$(wf_root)
## fixme use realpath or something on "$file" ## fixme use realpath or something on "$file"
file_type=$(sniff_file_type "$file") file_type=$(sniff_file_type "$file")
wrflog got file_type "$file_type"
export WOULD_REFORMAT=would_reformat export WOULD_REFORMAT=would_reformat
if [[ $file_type = "javascript" || \ if [[ $file_type = "javascript" || \
@@ -37,9 +31,6 @@ if [[ $file_type = "javascript" || \
$file_type == "css" || \ $file_type == "css" || \
$file_type == "scss" || \ $file_type == "scss" || \
$file_type = "sh" ]]; then $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=$("$(wfroot "$DIR")"/./prettier.sh "$file" 2>&1 > /dev/null)
out=$("$WF_ROOT"/./prettier.sh "$file" 2>&1 >/dev/null) out=$("$WF_ROOT"/./prettier.sh "$file" 2>&1 >/dev/null)
retval="$?" retval="$?"