Add non-verbose output mode
Set VERBOSE=False to turn off the noise of stack.sh output. All
output still is written to the logfile if LOGFILE is set.
Rebased
Change-Id: I316bc4d68c997ec907a48e720e2f7778428d935b
diff --git a/lib/template b/lib/template
index 78b848d..02de5ce 100644
--- a/lib/template
+++ b/lib/template
@@ -16,9 +16,9 @@
# stop_XXXX
# cleanup_XXXX
-# Print the commands being run so that we can see the command that triggers
-# an error. It is also useful for following along as the install occurs.
-set -o xtrace
+# Save trace setting
+XTRACE=$(set +o | grep xtrace)
+set +o xtrace
# Defaults
@@ -75,3 +75,6 @@
# FIXME(dtroyer): stop only our screen screen window?
:
}
+
+# Restore xtrace
+$XTRACE