feat: Added command

This commit is contained in:
2026-06-20 18:40:57 +05:30
parent 0978403fa2
commit bad324a5cd
16 changed files with 182 additions and 218 deletions

View File

@@ -35,51 +35,16 @@ install_bat() {
if [ "$distro" = "arch" ]; then
log_info "Arch Linux detected"
if has_command bat; then
if ! confirm "Bat is already installed. Reinstall/Upgrade?"; then
log_info "Skipping Bat installation."
return
fi
else
if ! confirm "Install Bat?"; then
log_info "Skipping Bat installation."
return
fi
fi
log_info "Installing Bat..."
pkg_install bat
elif [ "$distro" = "fedora" ]; then
log_info "Fedora detected"
if has_command bat; then
if ! confirm "Bat is already installed. Reinstall/Upgrade?"; then
log_info "Skipping Bat installation."
return
fi
else
if ! confirm "Install Bat?"; then
log_info "Skipping Bat installation."
return
fi
fi
log_info "Installing Bat..."
pkg_install bat
elif [ "$distro" = "debian" ]; then
log_info "Debian/Ubuntu detected"
if has_command bat; then
if ! confirm "Bat is already installed. Reinstall/Upgrade?"; then
log_info "Skipping Bat installation."
return
fi
else
if ! confirm "Install Bat?"; then
log_info "Skipping Bat installation."
return
fi
fi
pkg_install curl wget