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:
co-authored by
Sisyphus
parent
59455098d3
commit
f3bcffad60
+1
-1
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user