From 6e6a020978256e9fc688ec0f9c6bd2e5b2d306ea Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Wed, 17 Apr 2019 15:36:38 +0800 Subject: [PATCH] Revise error handling for function getdisksize() --- xCAT-server/share/xcat/install/scripts/pre.rhels8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/pre.rhels8 b/xCAT-server/share/xcat/install/scripts/pre.rhels8 index 2fb50c424..c98667d42 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.rhels8 +++ b/xCAT-server/share/xcat/install/scripts/pre.rhels8 @@ -214,7 +214,7 @@ getdisksize() disk="${disk#/dev/}" - [ -z "${disk}" ] && return + [ -z "${disk}" ] && echo "0" && return local blah local blocks