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/keystone b/lib/keystone
index a6ab5a3..06920f8 100644
--- a/lib/keystone
+++ b/lib/keystone
@@ -18,9 +18,9 @@
# stop_keystone
# cleanup_keystone
-# 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
@@ -170,3 +170,6 @@
# Kill the Keystone screen window
screen -S $SCREEN_NAME -p key -X kill
}
+
+# Restore xtrace
+$XTRACE