diff --git a/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx b/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx index f8ccbfc0..48b5a2a1 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",