[Pm-utils] [PATCH 16/17] No need for extra x's in comparisons in pm-powersave.in

Victor Lowther victor.lowther at gmail.com
Sat Feb 9 18:31:20 PST 2008


---
 src/pm-powersave.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pm-powersave.in b/src/pm-powersave.in
index f6cea14..5098cf8 100644
--- a/src/pm-powersave.in
+++ b/src/pm-powersave.in
@@ -28,7 +28,7 @@ POWERSAVE_LOGFILE="/dev/null"
 export PM_FUNCTIONS="@PM-UTILS-LIBDIR@/functions"
 . "${PM_FUNCTIONS}"
 
-if [ "x$1" = "xtrue" -o "x$1" = "xfalse" ] ; then
+if [ "$1" = "true" -o "$1" = "false" ] ; then
     init_logfile "${POWERSAVE_LOGFILE}"
     run_hooks power "$1"
 else
-- 
1.5.3.8



More information about the Pm-utils mailing list