better string trim/crop from whitespaces

This commit is contained in:
Jaromil 2011-01-11 19:18:02 +01:00
parent dc9af2ccaf
commit d079876e08

View File

@ -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