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:
parent
b2dd4a5a56
commit
6e6a020978
@ -214,7 +214,7 @@ getdisksize()
|
||||
|
||||
disk="${disk#/dev/}"
|
||||
|
||||
[ -z "${disk}" ] && return
|
||||
[ -z "${disk}" ] && echo "0" && return
|
||||
|
||||
local blah
|
||||
local blocks
|
||||
|
Loading…
x
Reference in New Issue
Block a user