From b2dd4a5a56667bb11c82e35cb83846e4bcb139a1 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Wed, 17 Apr 2019 15:34:25 +0800 Subject: [PATCH] Revise error handling for function getdisksize() --- xCAT-server/share/xcat/install/scripts/pre.rhels8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/pre.rhels8 b/xCAT-server/share/xcat/install/scripts/pre.rhels8 index 4cb204623..2fb50c424 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.rhels8 +++ b/xCAT-server/share/xcat/install/scripts/pre.rhels8 @@ -225,10 +225,11 @@ getdisksize() if [ "${name}" = "${disk}" ] then echo "${blocks}" - break + return fi done