diff --git a/postinstall.sh b/postinstall.sh index 28228a9..cf07f03 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -102,8 +102,8 @@ getDependencies() { case "$distro" in debian | ubuntu | arch | fedora | alpine | opensuse) - echo_info "Installing base packages.." + checkAndInstall "${generalDeps[@]}" checkAndInstall "${pkgArray[@]}" ;; *) @@ -135,8 +135,10 @@ main() { # Check if file exists if [ ! -f "$sources_file" ]; then - echo_error "Error: $sources_file not found" - return 1 + if [ ! -f "/etc/apt/sources.d/sources.list" ]; then + echo_error "Error: $sources_file not found" + return 1 + fi fi # Comment out CD-ROM entries using sudo