diff --git a/xCAT-genesis-scripts/bin/doxcat b/xCAT-genesis-scripts/bin/doxcat index ee9a51a03..1b730aaf2 100755 --- a/xCAT-genesis-scripts/bin/doxcat +++ b/xCAT-genesis-scripts/bin/doxcat @@ -149,10 +149,21 @@ while :; do dest=`echo $destiny|awk -F= '{print $1}'` mkdir /tmp/`basename $destparameter` cd /tmp/`basename $destparameter` + eval destparameter=$destparameter ERROR=`wget $destparameter 2>&1` - while [ $? == 1 ] && echo $ERROR|grep -v 416; do + rc=$? + if [ $rc -ne 0 ]; then + echo "Failed to wget $destparameter" + echo $ERROR + fi + while [ $rc -ne 0 ] && echo $ERROR|grep -v 416; do sleep 10 ERROR=`wget -c $destparameter 2>&1` + rc=$? + if [ $rc -ne 0 ]; then + echo "Failed to wget $destparameter" + echo $ERROR + fi done tar xvf `basename $destparameter` ./runme.sh