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 done
# get the first partition # get the first partition
usbpart=`dmesg |tail -n 8 | grep ' sd.:' |cut -d: -f2` usbpart=`dmesg |tail -n 8 | grep ' sd.:' |cut -d: -f2 |tr -d ' '`
usbpart=`expr substr $usbpart 1 4`
# what that it is mounted # what that it is mounted
mounted=false mounted=false