Skip to content

Commit

Permalink
Update app/views/templates/script/convert2rhel_analyze.erb
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Růžička <[email protected]>
  • Loading branch information
stejskalleos and adamruzicka authored Oct 17, 2023
1 parent 9f2027b commit e9f12be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/templates/script/convert2rhel_analyze.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export CONVERT2RHEL_DISABLE_TELEMETRY=1
/usr/bin/convert2rhel analyze -y

errors=$(grep -c 'ERROR' '/var/log/convert2rhel/convert2rhel-pre-conversion.json')
if [ "$errors" -gt 0 ]; then
echo "Error: $errors error(s) have been found."
if ! grep -q ERROR /var/log/convert2rhel/convert2rhel-pre-conversion.json; then
echo "Error: Some error(s) have been found."
echo "Exiting ..."
exit 1
fi
Expand Down

0 comments on commit e9f12be

Please sign in to comment.