commit d079876e0844073dec6a5bc369b3ade000e58b4c parent dc9af2ccafb6a62c0265f4e51fff741b4c276590 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(-)
diff --git 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