2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

update script to add repeat times

This commit is contained in:
litingt 2019-01-11 03:25:47 -05:00
parent e2939f6605
commit 7dbe381b5a

View File

@ -7,7 +7,15 @@ declare -i tryreinstall=1
node=$1
osimage=$2
for (( tryreinstall = 1 ; tryreinstall < 6 ; ++tryreinstall ))
if [ $# -eq 3 ];
then
times=$3+1
else
times=6
fi
for (( tryreinstall = 1 ; tryreinstall < $times ; ++tryreinstall ))
do
echo "Try to install $node on the $tryreinstall time..."