test string compare instead of diff
This commit is contained in:
		| @@ -55,12 +55,13 @@ old_full_ver=$(echo "${array[$it]}" | awk -F ',' '{print $4}') #Upgraded From | |||||||
| new_full_ver=$(echo "${array[$it]}" | awk -F ',' '{print $5}') #Upraded To | 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}') | rollback_version=$(echo "${array[$it]}" | awk -F ',' '{print $4}' | awk -F '_' '{print $2}') | ||||||
| if  grep -qs "^$app_name," failed.txt ; then | if  grep -qs "^$app_name," failed.txt ; then | ||||||
|     if diff <(grep "^$app_name," failed.txt | awk -F ',' '{print $2}') <(echo "$new_full_ver") &> /dev/null ; then |     failed_ver=$(grep "^$app_name," failed.txt | awk -F ',' '{print $2}') | ||||||
|         sed -i /"$app_name",/d  failed.txt |     if [[ "$failed_ver" == "$new_full_ver" ]] ; then | ||||||
|     else  |  | ||||||
|         echo -e "\n$app_name" |         echo -e "\n$app_name" | ||||||
|         echo "Skipping already failed version $new_full_ver" |         echo "Skipping already failed version $new_full_ver" | ||||||
|         return 0 |         return 0 | ||||||
|  |     else  | ||||||
|  |         sed -i /"$app_name",/d  failed.txt | ||||||
|     fi |     fi | ||||||
| fi | fi | ||||||
| if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #continue to update | if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #continue to update | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user