]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- code cosmetics
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 12 Feb 2008 19:42:09 +0000 (19:42 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 12 Feb 2008 19:42:09 +0000 (19:42 +0000)
svn-id: @9312

geninitrd

index bb48bd2e767bef483eaeb8c949f57e0dfb48196f..b3d40f8f658e5407323f5b9a39490b3dfc9af661 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1554,7 +1554,8 @@ while [ $# -gt 0 ]; do
                USE_TUXONICE=no
                ;;
        --lvmtoolsversion=|--lvmversion=)
-               LVMTOOLSVERSION="`echo $1 | awk -F= '{print $2;}'`"
+               LVMTOOLSVERSION=${1#--lvmtoolsversion=}
+               LVMTOOLSVERSION=${1#--lvmversion=}
                ;;
        --lvmtoolsversion|--lvmversion)
                LVMTOOLSVERSION=$2
@@ -1649,8 +1650,8 @@ if [ ! -f /boot/vmlinuz-"$kernel" ]; then
        warn "/boot/vmlinuz-$kernel doesn't exist, is your /boot mounted?"
 fi
 
-pack_version="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d",$1,$2)}'`"
-pack_version_long="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d%03d",$1,$2,$3)}'`"
+pack_version=$(echo "$kernel" | awk -F. '{print sprintf("%03d%03d",$1,$2)}')
+pack_version_long=$(echo "$kernel" | awk -F. '{print sprintf("%03d%03d%03d",$1,$2,$3)}')
 
 if [ -z "$INITRDFS" ]; then
        if [ -z "$FS" ]; then
This page took 0.050393 seconds and 4 git commands to generate.