From a4edcd82dc5405d8b58bf6ea2ddb6f928c059049 Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Fri, 20 Feb 2015 03:15:20 +0000
Subject: bash scripts: Only enable verbose output if DEBUG= is used

---
 resources/scripts/helpers/download/grub | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'resources/scripts/helpers/download/grub')

diff --git a/resources/scripts/helpers/download/grub b/resources/scripts/helpers/download/grub
index 8dc512e4..6145293c 100755
--- a/resources/scripts/helpers/download/grub
+++ b/resources/scripts/helpers/download/grub
@@ -21,7 +21,8 @@
 # This script assumes that the working directory is the
 # root of libreboot_src or libreboot git.
 
-set -u -e -v
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
 
 # Get GRUB, revert to commit last used and apply patches.
 
-- 
cgit v1.2.3-70-g09d2