adding the changes

Signed-off-by: rajdas <mail.rajdas@gmail.com>
This commit is contained in:
rajdas
2019-09-25 17:33:12 +05:30
parent 69f6dc4168
commit 9d5528b106
5 changed files with 11 additions and 14 deletions

View File

@@ -32,6 +32,7 @@ do
eval $(yaml $file)
kind=$kind
# check if kind is chaosexperiment or ChartServiceVersion
if [ $kind == "ChaosExperiment" ]; then
newversion=$metadata_version
elif [ $kind == "ChartServiceVersion" ]; then
@@ -39,10 +40,10 @@ do
fi
# if version is interger or float (semversion)
result=sudo python scripts/semversion_checker.py $newversion
sudo python scripts/validate_version.py $newversion
if [ $? == 0 ]; then
temp=$(echo ${file::-18})
if [ $kind == "ChartServiceVersion" ]; then
# echo $temp
oldversionfile=$temp'.yaml'
@@ -66,10 +67,6 @@ do
`sed -i "s/$oldversion/$newversion/" $oldversionfile`
`sed -i "s/version:[[:space:]]*$oldversion/version: {{ VERSION }}/" $file`
fi
fi
done
done