mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-10 23:20:57 +00:00
better string trim/crop from whitespaces
This commit is contained in:
parent
dc9af2ccaf
commit
d079876e08
3
src/tomb
3
src/tomb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user