]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty
fixed verbose output
[backmeupscotty.git] / backmeupscotty
index 1daddb8dbec5f14bb61fc812c63f0a7ab7a4ffed..5aa72cc790e31a27b3387c453ebe53b1da71f6bb 100644 (file)
@@ -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