Update getSize() regex
This commit is contained in:
parent
554d973945
commit
44947d7bf8
|
@ -120,7 +120,7 @@ partDisks() {
|
||||||
getSize() {
|
getSize() {
|
||||||
sizeStr=$(whiptail --inputbox "Enter the size of the ${1} (in GB)." 0 0 3>&1 1>&2 2>&3)
|
sizeStr=$(whiptail --inputbox "Enter the size of the ${1} (in GB)." 0 0 3>&1 1>&2 2>&3)
|
||||||
exitIfCancel "You must enter a size." "partDisks"
|
exitIfCancel "You must enter a size." "partDisks"
|
||||||
echo "$sizeStr" | awk -F'[^0-9]+' '{ print $1 }'
|
echo "$sizeStr" | awk -F'[^0-9.,]+' '{ print $1 }'
|
||||||
}
|
}
|
||||||
|
|
||||||
createSwapfile() {
|
createSwapfile() {
|
||||||
|
|
Loading…
Reference in New Issue