X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/0ac890d894ff248395d933ffc45c55583a51a243..a2ef8e60326c6df9fa6191a022920caf5b604e8b:/backmeupscotty diff --git a/backmeupscotty b/backmeupscotty index 1daddb8..dd14711 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -10,7 +10,7 @@ _ERROR_ENCOUNTERED=0 _UPPERME=$(echo $(basename $0) | tr '[:lower:]' '[:upper:]') function timestamp { - echo $(date +"[%y-%m-%d %H:%M:%S]") + date +'[%y-%m-%d|%H:%M:%S]' } function scottyline { @@ -18,7 +18,7 @@ function scottyline { } function scottyinfo { - if ($_ERROR_ENCOUNTERED -eq 0); then + if [ $_ERROR_ENCOUNTERED -eq 0 ]; then scottyline $@ else scottyline $@ >&2