Fix wf_root

This commit is contained in:
Michael Wolf
2023-09-30 17:18:26 -06:00
parent 21736cf0a2
commit 5319677a4c

View File

@@ -49,8 +49,11 @@ wf_root() {
set -u
arg=$(pwd)/bin/would-reformat.sh
PROJECT_ROOT=$(project_root "$arg")
pr=$(project_root "$arg")
pushd "$PROJECT_ROOT" 2>&1 >/dev/null
pr="$PROJECT_ROOT"
link="$pr/bin/would-reformat.sh"
@@ -59,6 +62,8 @@ wf_root() {
out="$original"
popd 2>&1 >/dev/null
echo "$out"
return 0
}