diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 275072b5..321f3788 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -9,8 +9,13 @@ # This sets verbose mode if the global variable is set to "yes" # if [ "$VERBOSE" == "yes" ]; then set -x; fi -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) -load_functions +if command -v curl >/dev/null 2>&1; then + source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +elif command -v wget >/dev/null 2>&1; then + source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +fi # This function sets color variables for formatting output in the terminal # Colors diff --git a/misc/alpine-install.func b/misc/alpine-install.func index 4bbb156c..2dbbfc63 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -4,8 +4,13 @@ # License: MIT # https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) -load_functions +if command -v curl >/dev/null 2>&1; then + source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +elif command -v wget >/dev/null 2>&1; then + source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +fi # This function sets color variables for formatting output in the terminal # color() { diff --git a/misc/build.func b/misc/build.func index 6a254cd3..5659a716 100644 --- a/misc/build.func +++ b/misc/build.func @@ -16,8 +16,13 @@ variables() { source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/api.func) -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) -color +if command -v curl >/dev/null 2>&1; then + source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +elif command -v wget >/dev/null 2>&1; then + source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +fi # # This function sets various color variables using ANSI escape codes for formatting text in the terminal. # color() { diff --git a/misc/install.func b/misc/install.func index 764b0302..8c873eb4 100644 --- a/misc/install.func +++ b/misc/install.func @@ -5,8 +5,13 @@ # License: MIT # https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) -load_functions +if command -v curl >/dev/null 2>&1; then + source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +elif command -v wget >/dev/null 2>&1; then + source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) + load_functions +fi # color() { # # Colors