fix(install): prevent dnf check-update from exiting script on Fedora (#243)

dnf check-update returns exit code 100 when system updates are
available, which causes the script to exit immediately due to set -e.
Added '|| true' to prevent this non-error condition from stopping
the installer.

Fixes #34 (Fedora installation failure)

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Jatin K Malik
2026-02-21 11:17:29 -08:00
committed by GitHub
co-authored by Sisyphus
parent 59455098d3
commit f3bcffad60
+1 -1
View File
@@ -986,7 +986,7 @@ install_system_dependencies() {
if [ -n "$MISSING_PACKAGES" ]; then
print_info "Installing missing packages:$MISSING_PACKAGES"
$UPDATE_CMD
$UPDATE_CMD || true # dnf check-update returns 100 if updates available
$INSTALL_CMD $MISSING_PACKAGES || { print_error "Failed to install dependencies"; exit 1; }
else
print_info "All required packages are already installed."