From d32de662250f4a9a9bae339c3d1dfb33ad9ef4c2 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Sun, 22 Jun 2025 20:19:19 +1000 Subject: [PATCH] Fix unclosed if statement --- misc/api.func | 2 +- misc/build.func | 1 + misc/core.func | 4 ++-- misc/create_lxc.sh | 4 ++-- misc/install.func | 6 +++--- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/misc/api.func b/misc/api.func index c6809c1e1..3d492511a 100644 --- a/misc/api.func +++ b/misc/api.func @@ -1,6 +1,6 @@ # Copyright (c) 2021-2025 community-scripts ORG # Author: michelroegl-brunner -# License: MIT | https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/LICENSE +# License: MIT | https://raw.githubusercontent.com/asylumexp/Proxmox/main/LICENSE post_to_api() { diff --git a/misc/build.func b/misc/build.func index f0614d7c6..a7eb65d22 100644 --- a/misc/build.func +++ b/misc/build.func @@ -911,6 +911,7 @@ start() { apt-get install -y whiptail &>/dev/null elif [ -f /etc/alpine-release ]; then apk add --no-cache whiptail &>/dev/null + fi fi if command -v pveversion >/dev/null 2>&1; then diff --git a/misc/core.func b/misc/core.func index 1a904f9ab..a4dfe3e5a 100644 --- a/misc/core.func +++ b/misc/core.func @@ -1,5 +1,5 @@ # Copyright (c) 2021-2025 community-scripts ORG -# License: MIT | https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/LICENSE +# License: MIT | https://raw.githubusercontent.com/asylumexp/Proxmox/main/LICENSE # if ! declare -f wait_for >/dev/null; then # echo "[DEBUG] Undefined function 'wait_for' used from: ${BASH_SOURCE[*]}" >&2 @@ -228,7 +228,7 @@ silent() { get_header() { local app_name=$(echo "${APP,,}" | tr -d ' ') local app_type=${APP_TYPE:-ct} # Default 'ct' - local header_url="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/${app_type}/headers/${app_name}" + local header_url="https://raw.githubusercontent.com/asylumexp/Proxmox/main/${app_type}/headers/${app_name}" local local_header_path="/usr/local/community-scripts/headers/${app_type}/${app_name}" mkdir -p "$(dirname "$local_header_path")" diff --git a/misc/create_lxc.sh b/misc/create_lxc.sh index 943e698d1..64a4c2cf4 100644 --- a/misc/create_lxc.sh +++ b/misc/create_lxc.sh @@ -8,11 +8,11 @@ # if [ "$VERBOSE" == "yes" ]; then set -x; fi if command -v curl >/dev/null 2>&1; then - source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) + source <(curl -fsSL https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/core.func) load_functions #echo "(create-lxc.sh) Loaded core.func via curl" elif command -v wget >/dev/null 2>&1; then - source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) + source <(wget -qO- https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/core.func) load_functions #echo "(create-lxc.sh) Loaded core.func via wget" fi diff --git a/misc/install.func b/misc/install.func index cbeb8a473..0938bdc8b 100644 --- a/misc/install.func +++ b/misc/install.func @@ -8,7 +8,7 @@ if ! command -v curl >/dev/null 2>&1; then apt-get update >/dev/null 2>&1 apt-get install -y curl >/dev/null 2>&1 fi -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) +source <(curl -fsSL https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/core.func) load_functions # This function enables IPv6 if it's not disabled and sets verbose mode verb_ip6() { @@ -28,7 +28,7 @@ catch_errors() { # This function handles errors error_handler() { - source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) + source <(curl -fsSL https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/api.func) printf "\e[?25h" local exit_code="$?" local line_number="$1" @@ -146,7 +146,7 @@ EOF $STD apt-get update $STD apt-get install -y sudo curl mc gnupg2 openssh-server wget - source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func) + source <(curl -fsSL https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/tools.func) } # This function modifies the message of the day (motd) and SSH settings