tbetter string trim/crop from whitespaces - tomb - the crypto undertaker
 (HTM) git clone git://parazyd.org/tomb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d079876e0844073dec6a5bc369b3ade000e58b4c
 (DIR) parent dc9af2ccafb6a62c0265f4e51fff741b4c276590
 (HTM) Author: Jaromil <jaromil@dyne.org>
       Date:   Tue, 11 Jan 2011 19:18:02 +0100
       
       better string trim/crop from whitespaces
       
       Diffstat:
         M src/tomb                            |       3 +--
       
       1 file changed, 1 insertion(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/tomb b/src/tomb
       t@@ -73,8 +73,7 @@ ask_usbkey() {
            done
        
            # get the first partition
       -    usbpart=`dmesg |tail -n 8 | grep '  sd.:' |cut -d: -f2`
       -    usbpart=`expr substr $usbpart 1 4`
       +    usbpart=`dmesg |tail -n 8 | grep '  sd.:' |cut -d: -f2 |tr -d ' '`
        
            # what that it is mounted
            mounted=false