Update dmidecode2dokuwiki.sh
This commit is contained in:
1 parent
4c82a10e96
commit
5b589c4fb0
1 file changed
+4
-1
@@ -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