Skip to content
Snippets Groups Projects
Verified Commit 8c4a30c5 authored by Christoph Johannes Kleine's avatar Christoph Johannes Kleine
Browse files

fix installer.sh sed regex

parent a61c23a8
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ export DISK_DEVICES ...@@ -19,7 +19,7 @@ export DISK_DEVICES
# return: # return:
# size in byte # size in byte
convertSizeToByte() { convertSizeToByte() {
local unit=$(echo $1 | sed "s/[1-9\.]*//g") local unit=$(echo $1 | sed "s/[0-9\.]*//g")
local value=$(echo $1 | sed "s/[a-zA-Z%]*//g") local value=$(echo $1 | sed "s/[a-zA-Z%]*//g")
local factor=1 local factor=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment