From 44d51786e3482eeb8384312abdb90b522ef22c0d Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 31 Mar 2025 14:18:14 +0200 Subject: [PATCH] Update fumadocs-install.sh --- install/fumadocs-install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/install/fumadocs-install.sh b/install/fumadocs-install.sh index 6cb4359..c0a3840 100644 --- a/install/fumadocs-install.sh +++ b/install/fumadocs-install.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash -# Copyright (c) 2021-2025 tteck -# Author: tteck (tteckster) -# License: MIT -# https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color @@ -31,9 +30,9 @@ msg_ok "Installed Node.js" msg_info "Installing Fumadocs" temp_file=$(mktemp) -RELEASE=$(curl -s https://api.github.com/repos/fuma-nama/fumadocs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +RELEASE=$(curl -fsSL https://api.github.com/repos/fuma-nama/fumadocs/releases/latest | grep '"tag_name"' | awk -F '"' '{print $4}') export NODE_OPTIONS="--max-old-space-size=4096" -wget -q https://github.com/fuma-nama/fumadocs/archive/refs/tags/${RELEASE}.tar.gz -O $temp_file +curl -fsSL "https://github.com/fuma-nama/fumadocs/archive/refs/tags/${RELEASE}.tar.gz" -o "$temp_file" tar -xzf $temp_file mv fumadocs-* "/opt/fumadocs" cd /opt/fumadocs