2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 11:10:24 +00:00

Revise error handling for function getdisksize()

This commit is contained in:
GONG Jie
2019-04-17 15:34:25 +08:00
parent a62468da34
commit b2dd4a5a56

View File

@@ -225,10 +225,11 @@ getdisksize()
if [ "${name}" = "${disk}" ]
then
echo "${blocks}"
break
return
fi
done </proc/partitions
echo "0"
return
}