If the Intranet machine server is not networked, the test cannot be performed。Intranet machines do not need to check for the latest version of the code
Modify the code at the end of the tpch.sh
for j in $(curl google.com 2>&1 | grep "Couldn't resolve host"); do
internet_down="1"
done
if [ "$internet_down" -eq "0" ]; then
yum_installs
repo_init
script_check
else
echo "############################################################################"
echo "Couldn't resolve host,The local code is not checked for the latest version."
echo "############################################################################"
echo ""
fi