add curl checks

This commit is contained in:
MickLesk
2026-08-03 09:42:36 +02:00
parent 55675cef37
commit cb1b4bb705
6 changed files with 20 additions and 14 deletions
+7 -2
View File
@@ -6,8 +6,13 @@
# Source: https://github.com/getarcaneapp/arcane
if ! command -v curl &>/dev/null; then
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
apt update >/dev/null 2>&1
apt install -y curl >/dev/null 2>&1
if [[ -f /etc/alpine-release ]]; then
apk update >/dev/null 2>&1
apk add --no-cache curl >/dev/null 2>&1
else
apt-get update >/dev/null 2>&1
apt-get install -y curl >/dev/null 2>&1
fi
fi
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
+2 -5
View File
@@ -20,13 +20,10 @@ trap 'error_handler' ERR
# Initialize all core functions (colors, formatting, icons, STD mode)
load_functions
require_debian_like
header_info
if command -v pveversion >/dev/null 2>&1; then
msg_error "Can't Install on Proxmox"
exit 1
fi
confirm_not_pve_host
while true; do
echo -n "${TAB}This will Install ${APP}. Proceed (y/n)? "
+7 -2
View File
@@ -6,8 +6,13 @@
# Source: https://komo.do/ | Github: https://github.com/moghtech/komodo
if ! command -v curl &>/dev/null; then
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
apt-get update >/dev/null 2>&1 || apk update >/dev/null 2>&1
apt-get install -y curl >/dev/null 2>&1 || apk add --no-cache curl >/dev/null 2>&1
if [[ -f /etc/alpine-release ]]; then
apk update >/dev/null 2>&1
apk add --no-cache curl >/dev/null 2>&1
else
apt-get update >/dev/null 2>&1
apt-get install -y curl >/dev/null 2>&1
fi
fi
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
+1
View File
@@ -20,6 +20,7 @@ trap 'error_handler' ERR
# Initialize all core functions (colors, formatting, icons, STD mode)
load_functions
require_debian_like
header_info
ensure_usr_local_bin_persist
+2 -5
View File
@@ -20,13 +20,10 @@ trap 'error_handler' ERR
# Initialize all core functions (colors, formatting, icons, STD mode)
load_functions
require_debian_like
header_info
if command -v pveversion >/dev/null 2>&1; then
msg_error "Can't Install on Proxmox "
exit 1
fi
confirm_not_pve_host
get_lxc_ip
msg_info "Installing ${APP}"
$STD apt update
+1
View File
@@ -20,6 +20,7 @@ trap 'error_handler' ERR
# Initialize all core functions (colors, formatting, icons, STD mode)
load_functions
require_debian_like
header_info