Fix wf_root
This commit is contained in:
@@ -49,8 +49,11 @@ wf_root() {
|
|||||||
set -u
|
set -u
|
||||||
|
|
||||||
arg=$(pwd)/bin/would-reformat.sh
|
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"
|
link="$pr/bin/would-reformat.sh"
|
||||||
|
|
||||||
@@ -59,6 +62,8 @@ wf_root() {
|
|||||||
|
|
||||||
out="$original"
|
out="$original"
|
||||||
|
|
||||||
|
popd 2>&1 >/dev/null
|
||||||
|
|
||||||
echo "$out"
|
echo "$out"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user