Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Aug 18, 2023
1 parent e79d953 commit e631d76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions usr/bin/dist-installer-cli
Original file line number Diff line number Diff line change
Expand Up @@ -900,16 +900,16 @@ update_sources(){
log notice "Updating package list."
# shellcheck disable=SC2086
if update_output=$(root_cmd ${pkg_mngr_update} 2>&1 | tee /dev/tty) ; then
## Exit code is zero but that does not guarantee in case of dnf that there is no error.
true "INFO: Exit code is zero but that does not guarantee in case of dnf that there is no error."
if echo "$update_output" | grep --quiet --ignore-case "Error:" ; then
## Error found. Stop.
true "INFO: Error found in grep output. Stop."
update_sources_error
else
## No error found. Continuing.
true "INFO: No error found in grep output, ok."
return 0
fi
else
## Non-zero exit code. Stop.
true "INFO: Non-zero exit code. Stop."
update_sources_error
fi
}
Expand Down

0 comments on commit e631d76

Please sign in to comment.