diff --git a/_wrflog.sh b/_wrflog.sh new file mode 100644 index 0000000..b92f0a3 --- /dev/null +++ b/_wrflog.sh @@ -0,0 +1,3 @@ +function wrflog() { + echo "$@" >>/tmp/wrflog +} diff --git a/would-reformat.sh b/would-reformat.sh index ce1e106..12c9aee 100755 --- a/would-reformat.sh +++ b/would-reformat.sh @@ -5,6 +5,9 @@ IFS=$'\n\t' DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +## This should be rarely if ever necessary, but here it is: +# source "$DIR/_wrflog.sh" +# wrflog before sourcing common funcs, I think i am in dir: $(pwd) source "$DIR/_reformat-common.bash" wrflog asdf asdf asdf