diff --git a/.agents/skills/add_installer/SKILL.md b/.agents/skills/add_installer/SKILL.md index b7c2cc0..947be75 100644 --- a/.agents/skills/add_installer/SKILL.md +++ b/.agents/skills/add_installer/SKILL.md @@ -200,14 +200,13 @@ trap cleanup EXIT ### Distro-specific mapping ```bash -pkg_install "arch:neovim|debian:nvim|fedora:neovim" "curl" "git" +pkg_install "arch:neovim|debian:nvim|fedora:neovim" "git" ``` ### Fetching latest GitHub release tag ```bash local latest_tag="" -if has_command curl; then latest_tag=$(curl -sL https://api.github.com/repos///releases/latest \ | grep '"tag_name":' | head -n1 \ | sed -E 's/.*"tag_name": "([^"]+)".*/\1/' || true) diff --git a/bootstrap.sh b/bootstrap.sh index 0b5c89b..3c6366d 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -8,11 +8,6 @@ if [ -z "${BASH_VERSION:-}" ]; then exit 1 fi -if ! command -v curl >/dev/null 2>&1; then - echo "Error: curl is required to run this script." >&2 - exit 1 -fi - # Detect if the script is sourced is_sourced=false if [ -n "${BASH_SOURCE[0]:-}" ] && [ "${BASH_SOURCE[0]}" != "$0" ]; then diff --git a/installers/install_nvim.sh b/installers/install_nvim.sh index 5b4e97a..87c60b1 100644 --- a/installers/install_nvim.sh +++ b/installers/install_nvim.sh @@ -28,7 +28,7 @@ check_config_dir() { install_packages() { log_info "Detecting distribution and installing dependencies..." pkg_install \ - git tar curl unzip ripgrep fzf nodejs npm xclip wl-clipboard \ + git tar unzip ripgrep fzf nodejs npm xclip wl-clipboard \ "arch:fd|debian:fd-find|fedora:fd-find" \ "arch:cmake|debian:cmake|fedora:cmake" \ "arch:make|debian:build-essential|fedora:make" \ diff --git a/installers/install_rust.sh b/installers/install_rust.sh index 351c97b..2107376 100644 --- a/installers/install_rust.sh +++ b/installers/install_rust.sh @@ -15,14 +15,6 @@ cleanup() { } trap cleanup EXIT -# Ensure we have curl -install_downloader() { - if ! has_command curl; then - log_info "curl not found. Installing curl..." - pkg_install curl - fi -} - detect_target_triple() { local ostype ostype="$(uname -s)" @@ -60,7 +52,7 @@ install_rust() { log_info "Rust (rustup) is already installed." fi - install_downloader + local target target=$(detect_target_triple) diff --git a/installers/install_starship.sh b/installers/install_starship.sh index 3ee872f..ec89f86 100644 --- a/installers/install_starship.sh +++ b/installers/install_starship.sh @@ -20,12 +20,6 @@ install_starship() { log_info "Starship is already installed." fi - # Ensure curl is installed - if ! has_command curl; then - log_info "curl not found. Installing curl..." - pkg_install curl - fi - # Detect architecture local raw_arch raw_arch=$(detect_arch) diff --git a/installers/install_uv.sh b/installers/install_uv.sh index 159b64f..9d79cc3 100644 --- a/installers/install_uv.sh +++ b/installers/install_uv.sh @@ -23,12 +23,6 @@ install_uv() { fi fi - # Ensure curl is installed - if ! has_command curl; then - log_info "curl not found. Installing curl..." - pkg_install curl - fi - # Detect architecture local raw_arch raw_arch=$(detect_arch) diff --git a/installers/install_zoxide.sh b/installers/install_zoxide.sh index 5d72b73..659eb1e 100755 --- a/installers/install_zoxide.sh +++ b/installers/install_zoxide.sh @@ -9,12 +9,6 @@ set -euo pipefail -install_curl() { - if ! has_command curl; then - log_info "curl not found. Installing curl..." - pkg_install curl - fi -} install_fzf() { if has_command fzf; then @@ -31,7 +25,7 @@ install_zoxide() { log_info "Zoxide is already installed." fi - install_curl + log_info "Downloading and running the official zoxide installer..." curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh