Update dmidecode2dokuwiki.sh
This commit is contained in:
@@ -47,7 +47,10 @@ while read -r SIZE_LINE; do
|
||||
|
||||
SIZE_VALUE=$(echo "$SIZE_LINE" | awk '{print $1}')
|
||||
SIZE_UNIT=$(echo "$SIZE_LINE" | awk '{print $2}')
|
||||
|
||||
# Skip regels met SIZE_VALUE > 999 (dus >3 digits)
|
||||
if (( SIZE_VALUE > 999 )); then
|
||||
continue
|
||||
fi
|
||||
case "$SIZE_UNIT" in
|
||||
MB|M)
|
||||
GB=$(( SIZE_VALUE / 1024 ))
|
||||
|
||||
Reference in New Issue
Block a user