From e88c1e1781f453db2de6ea46cc574c237c042a6a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 3 Feb 2012 13:50:35 +0100 Subject: Small style cleanup * Add whitespace to arithmetic expressions. * Use boolean logic for semantically boolean variables. Signed-off-by: Lukas Fleischer --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') diff --git a/functions b/functions index 24da795..833711b 100644 --- a/functions +++ b/functions @@ -662,7 +662,7 @@ need_root() { # Quit script if it's not running by root # This can be disabled in scripts sourcing functions by setting NEED_ROOT=0 # A local call to need_root can be done to ensure part of script need root privilege -(( ${NEED_ROOT:-0} == 1 )) && need_root +(( NEED_ROOT )) && need_root # End of file # vim: set ts=2 sw=2 noet: -- cgit v1.2.3