2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Revise error handling for function getdisksize()

This commit is contained in:
GONG Jie 2019-04-17 15:36:38 +08:00
parent b2dd4a5a56
commit 6e6a020978

View File

@ -214,7 +214,7 @@ getdisksize()
disk="${disk#/dev/}"
[ -z "${disk}" ] && return
[ -z "${disk}" ] && echo "0" && return
local blah
local blocks