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 --- resources/scripts/misc/powertop.trisquel7 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'resources/scripts/misc/powertop.trisquel7') diff --git a/resources/scripts/misc/powertop.trisquel7 b/resources/scripts/misc/powertop.trisquel7 index c8478f20..670c3791 100755 --- a/resources/scripts/misc/powertop.trisquel7 +++ b/resources/scripts/misc/powertop.trisquel7 @@ -2,7 +2,7 @@ # powertop.trisquel7: automatically sets up powertop --auto-tune on startup in trisquel 7 # -# Copyright (C) 2014 Francis Rowe +# Copyright (C) 2014, 2015 Francis Rowe # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,7 +18,8 @@ # along with this program. If not, see . # -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