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:
@@ -225,10 +225,11 @@ getdisksize()
|
||||
if [ "${name}" = "${disk}" ]
|
||||
then
|
||||
echo "${blocks}"
|
||||
break
|
||||
return
|
||||
fi
|
||||
done </proc/partitions
|
||||
|
||||
echo "0"
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user