From 8c84b3dbf67252ce8656b40f8f3cba23307d6756 Mon Sep 17 00:00:00 2001 From: Frank Qing Date: Fri, 24 Oct 2025 17:43:55 +0800 Subject: [PATCH] Enhance installation script by adding autoconf to the list of required packages and updating installation checks accordingly. --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index c4a29df..360918e 100755 --- a/install.sh +++ b/install.sh @@ -129,7 +129,7 @@ install_zoxide_fallback() { # Core: install required packages via the preferred package manager, then fall back where needed install_packages() { local os=$(detect_os) - local base_packages="zsh git wget fontconfig zoxide" + local base_packages="zsh git wget fontconfig zoxide autoconf" case $os in macos) @@ -163,12 +163,12 @@ install_packages() { } # 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 - echo -e "ZSH, Git, wget, fontconfig, eza, and zoxide are already installed\n" +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, zoxide, and autoconf are already installed\n" else echo "Installing required 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 if [ -f ~/.gitconfig.backup ]; then