mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-12 06:20:14 +00:00
Revise error handling for function getdisksize()
This commit is contained in:
@@ -214,7 +214,7 @@ getdisksize()
|
||||
|
||||
disk="${disk#/dev/}"
|
||||
|
||||
[ -z "${disk}" ] && return
|
||||
[ -z "${disk}" ] && echo "0" && return
|
||||
|
||||
local blah
|
||||
local blocks
|
||||
|
Reference in New Issue
Block a user