This commit is contained in:
pika 2025-05-17 20:58:41 +02:00
parent 4d111f7a94
commit e23be42d6a

View file

@ -102,8 +102,8 @@ getDependencies() {
case "$distro" in
debian | ubuntu | arch | fedora | alpine | opensuse)
echo_info "Installing base packages.."
checkAndInstall "${generalDeps[@]}"
checkAndInstall "${pkgArray[@]}"
;;
*)
@ -135,9 +135,11 @@ main() {
# Check if file exists
if [ ! -f "$sources_file" ]; then
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
$_sudo sed -i 's/^[[:space:]]*deb[[:space:]]\+cdrom:/#&/' "$sources_file"