From 3c29fa4201665862be67b0a4a3298eba6395513f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 24 Mar 2025 12:32:18 +0100 Subject: [PATCH] Update InstallCommand.tsx --- .../app/scripts/_components/ScriptItems/InstallCommand.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx b/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx index f8ccbfc..48b5a2a 100644 --- a/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx +++ b/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx @@ -5,9 +5,13 @@ import { Script } from "@/lib/types"; import { getDisplayValueFromType } from "../ScriptInfoBlocks"; const getInstallCommand = (scriptPath = "", isAlpine = false) => { - return `bash -c "$(curl -fsSL https://github.com/community-scripts/${basePath}/raw/main/${scriptPath})"`; + const url = `https://github.com/community-scripts/${basePath}/raw/main/${scriptPath}`; + return isAlpine + ? `bash -c "$(curl -fsSL ${url})"` + : `bash -c "$(curl -fsSL ${url})"`; }; + export default function InstallCommand({ item }: { item: Script }) { const alpineScript = item.install_methods.find( (method) => method.type === "alpine",