test string

This commit is contained in:
Heavybullets8 2022-08-04 14:36:39 -06:00
parent 286c215281
commit 9ad8673e8b

View File

@ -55,8 +55,9 @@ old_full_ver=$(echo "${array[$it]}" | awk -F ',' '{print $4}') #Upgraded From
new_full_ver=$(echo "${array[$it]}" | awk -F ',' '{print $5}') #Upraded To
rollback_version=$(echo "${array[$it]}" | awk -F ',' '{print $4}' | awk -F '_' '{print $2}')
if grep -qs "^$app_name," failed.txt ; then
if diff <(grep "^$app_name," | awk -F ',' '{print $2}') <(echo "$new_full_ver") &> /dev/null ; then
sed -i /"$app_name","$new_full_ver"/d failed.txt
failed_ver=$(grep "^$app_name," | awk -F ',' '{print $2}')
if diff <(echo "$failed_ver") <(echo "$new_full_ver") &> /dev/null ; then
sed -inE /"$app_name",.*/d failed.txt
else
echo -e "\n$app_name"
echo "Skipping already failed version $new_full_ver"