From a4edcd82dc5405d8b58bf6ea2ddb6f928c059049 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Fri, 20 Feb 2015 03:15:20 +0000 Subject: bash scripts: Only enable verbose output if DEBUG= is used --- flash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'flash') diff --git a/flash b/flash index 9ac352fb..3458c187 100755 --- a/flash +++ b/flash @@ -19,7 +19,8 @@ # ## Don't add here. errors are expected. -# set -u -e -v +[ "x${DEBUG+set}" = 'xset' ] && set -v +# set -u -e if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" -- cgit v1.2.3-70-g09d2