From e23be42d6a1764ad21fddbbfd925ea1aede1393b Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 17 May 2025 20:58:41 +0200 Subject: [PATCH] wip --- postinstall.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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