diff --git a/default.sh b/default.sh new file mode 100644 index 0000000..8bb2d30 --- /dev/null +++ b/default.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "ignoring" +exit 0 diff --git a/would-reformat.sh b/would-reformat.sh index 457729f..54f4c02 100755 --- a/would-reformat.sh +++ b/would-reformat.sh @@ -11,8 +11,10 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$DIR/_reformat-common.bash" file="$1" -export PROJECT_ROOT=$(project_root "$file") -export WF_ROOT=$(wf_root) +PROJECT_ROOT=$(project_root "$file") +export PROJECT_ROOT="$PROJECT_ROOT" +WF_ROOT=$(wf_root) +export WF_ROOT="$WF_ROOT" ## fixme use realpath or something on "$file"