Nix some debug output
This commit is contained in:
@@ -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="$?"
|
||||
|
||||
Reference in New Issue
Block a user