From d079876e0844073dec6a5bc369b3ade000e58b4c Mon Sep 17 00:00:00 2001 From: Jaromil Date: Tue, 11 Jan 2011 19:18:02 +0100 Subject: [PATCH] better string trim/crop from whitespaces --- src/tomb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tomb b/src/tomb index af6f82e..a30cf31 100755 --- a/src/tomb +++ b/src/tomb @@ -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