From 3d8ba44afda6e4b992e54e6b7a80085b5affd885 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 30 Sep 2023 17:20:59 -0600 Subject: [PATCH] Add some early logging possiblity --- _wrflog.sh | 3 +++ would-reformat.sh | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 _wrflog.sh 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