wip
This commit is contained in:
parent
4d111f7a94
commit
e23be42d6a
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue