Add some early logging possiblity

This commit is contained in:
Michael Wolf
2023-09-30 17:20:59 -06:00
parent 0414802fa8
commit 3d8ba44afd
2 changed files with 6 additions and 0 deletions

3
_wrflog.sh Normal file
View File

@@ -0,0 +1,3 @@
function wrflog() {
echo "$@" >>/tmp/wrflog
}

View File

@@ -5,6 +5,9 @@ IFS=$'\n\t'
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 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" source "$DIR/_reformat-common.bash"
wrflog asdf asdf asdf wrflog asdf asdf asdf