[prev in list] [next in list] [prev in thread] [next in thread] 

List:       initramfs
Subject:    [PATCH 04/18] Get rid of redundant NONL stuff in dracut-gencmdline
From:       Victor Lowther <victor.lowther () gmail ! com>
Date:       2009-08-16 21:14:54
Message-ID: ebdddd29d3b51f06f44b64bb12c19de149adcd20.1250455879.git.victor.lowther () gmail ! com
[Download RAW message or body]

bash's built-in echo already understands -n.

---
 dracut-gencmdline |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/dracut-gencmdline b/dracut-gencmdline
index 733f199..2901199 100755
--- a/dracut-gencmdline
+++ b/dracut-gencmdline
@@ -21,22 +21,11 @@
 
 
 function error() {
-    local NONL=""
-    if [ "$1" == "-n" ]; then
-        NONL="-n"
-        shift
-    fi
-    echo $NONL "$@" >&2
+    echo "$@" >&2
 }
 
 function vecho() {
-    return
-    local NONL=""
-    if [ "$1" == "-n" ]; then
-        NONL="-n"
-        shift
-    fi
-    is_verbose && echo $NONL "$@"
+    is_verbose && echo "$@"
 }
 
 # module dep finding and installation functions
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic