mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
fix(install-script): FreeBSD fixes and more
- Alias: FreeBSD: pkg update and autoremove aliases added - Install: GhostBSD: Use FreeBSD commands to do the installation - Install: FreeBSD: start dbus - Install: Fedora: improve dnf install speed by limiting minimum download rate & decreasing timeout - Install: Brew: Don't install brew package if OS has installed the package - Install: Brew: sccache for Rust - Install: OS: More packages moved from brew -> OS. Those are available across FreeBSD & Fedora
This commit is contained in:
@@ -29,10 +29,14 @@ install_brew_packages() {
|
||||
\#*) continue ;;
|
||||
esac
|
||||
|
||||
# Check if the package exists in the Homebrew repository
|
||||
# Check if package exists in brew repository and is not already installed on the system
|
||||
if brew search "$brew_package" 2>/dev/null | grep -q "$brew_package"; then
|
||||
echo "Available: $brew_package"
|
||||
found_packages="$found_packages $brew_package"
|
||||
if ! command -v "$brew_package" >/dev/null 2>&1; then
|
||||
echo "Available: $brew_package"
|
||||
found_packages="$found_packages $brew_package"
|
||||
else
|
||||
echo "Already installed: $brew_package"
|
||||
fi
|
||||
else
|
||||
not_found_packages="$not_found_packages $brew_package"
|
||||
echo "Unavailable: $brew_package"
|
||||
@@ -59,7 +63,6 @@ main() {
|
||||
input_file_check
|
||||
install_brew
|
||||
|
||||
|
||||
install_brew_packages
|
||||
print_summary "Brew" "$not_found_packages"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user