refactor: Remove redundant curl availability checks
Some checks failed
Lint / lint (push) Failing after 56s
Lint / lint (pull_request) Failing after 1m5s

This commit is contained in:
2026-06-26 21:49:24 +05:30
parent 29de051b7d
commit 4c1c7de0b7
7 changed files with 4 additions and 36 deletions

View File

@@ -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)