Add some early logging possiblity
This commit is contained in:
3
_wrflog.sh
Normal file
3
_wrflog.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function wrflog() {
|
||||||
|
echo "$@" >>/tmp/wrflog
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user