]> git.treefish.org Git - backmeupscotty.git/commitdiff
added verbose mode info message
authorAlexander Schmidt <alex@treefish.org>
Mon, 20 Jul 2015 22:43:03 +0000 (00:43 +0200)
committerAlexander Schmidt <alex@treefish.org>
Mon, 20 Jul 2015 22:43:03 +0000 (00:43 +0200)
backmeupscotty

index dd1471123bf372d0b60455d4b0a1ea9dee9eb5ca..1df23cd77c087c45ef247b714e6d3bd7a7f88327 100644 (file)
@@ -27,7 +27,10 @@ function scottyinfo {
 
 function scottyerror {
     scottyline $@ >&2
 
 function scottyerror {
     scottyline $@ >&2
-    _ERROR_ENCOUNTERED=1
+    if [ $_ERROR_ENCOUNTERED -eq 0 ]; then
+       _ERROR_ENCOUNTERED=1
+       scottyline "Going into verbose mode after error encounter." >&2
+    fi
 }
 
 function ssh255 {
 }
 
 function ssh255 {