Skip to content

Commit

Permalink
refs #36837 - Fix condition for errors and remove skips check
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Nov 9, 2023
1 parent 2472bf0 commit 4e81be1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/views/templates/script/convert2rhel_analyze.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,12 @@ export CONVERT2RHEL_DISABLE_TELEMETRY=1

/usr/bin/convert2rhel analyze -y

if ! grep -q ERROR /var/log/convert2rhel/convert2rhel-pre-conversion.json; then
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

if ! grep -q SKIP /var/log/convert2rhel/convert2rhel-pre-conversion.json; then
echo "Warning: Some check(s) have been skipped."
echo "Exiting ..."
exit 1
fi
<% else %>
echo 'Unsupported OS, it must be from the Red Hat family.'
exit 1
Expand Down

0 comments on commit 4e81be1

Please sign in to comment.