Enhance installation script by adding autoconf to the list of required packages and updating installation checks accordingly.
This commit is contained in:
@@ -129,7 +129,7 @@ install_zoxide_fallback() {
|
|||||||
# Core: install required packages via the preferred package manager, then fall back where needed
|
# Core: install required packages via the preferred package manager, then fall back where needed
|
||||||
install_packages() {
|
install_packages() {
|
||||||
local os=$(detect_os)
|
local os=$(detect_os)
|
||||||
local base_packages="zsh git wget fontconfig zoxide"
|
local base_packages="zsh git wget fontconfig zoxide autoconf"
|
||||||
|
|
||||||
case $os in
|
case $os in
|
||||||
macos)
|
macos)
|
||||||
@@ -163,12 +163,12 @@ install_packages() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Check if required packages are installed, if not, install them
|
# Check if required packages are installed, if not, install them
|
||||||
if command -v zsh &> /dev/null && command -v git &> /dev/null && command -v wget &> /dev/null && command -v fc-cache &> /dev/null && command -v eza &> /dev/null && command -v zoxide &> /dev/null; then
|
if command -v zsh &> /dev/null && command -v git &> /dev/null && command -v wget &> /dev/null && command -v fc-cache &> /dev/null && command -v eza &> /dev/null && command -v zoxide &> /dev/null && command -v autoconf &> /dev/null; then
|
||||||
echo -e "ZSH, Git, wget, fontconfig, eza, and zoxide are already installed\n"
|
echo -e "ZSH, Git, wget, fontconfig, eza, zoxide, and autoconf are already installed\n"
|
||||||
else
|
else
|
||||||
echo "Installing required packages..."
|
echo "Installing required packages..."
|
||||||
install_packages
|
install_packages
|
||||||
echo -e "zsh, wget, git, fontconfig, eza, and zoxide Installed\n"
|
echo -e "zsh, wget, git, fontconfig, eza, zoxide, and autoconf Installed\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ~/.gitconfig.backup ]; then
|
if [ -f ~/.gitconfig.backup ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user