检测 wget 是否存在
rpm -q wget >/dev/null
if [ "$?" -ge ];then
echo "install wget,Please wait..."
yum -y install wget
rpm -q wget >/dev/null
[ $? -ge ] && echo "wget installation failure,exit" && exit
echo "wget done"
read
fi
检测 wget 是否存在
rpm -q wget >/dev/null
if [ "$?" -ge ];then
echo "install wget,Please wait..."
yum -y install wget
rpm -q wget >/dev/null
[ $? -ge ] && echo "wget installation failure,exit" && exit
echo "wget done"
read
fi