diff --git a/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx b/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx index 5084d91e..795569b1 100644 --- a/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx +++ b/frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx @@ -4,7 +4,7 @@ import { basePath } from "@/config/siteConfig"; import { Script } from "@/lib/types"; const getInstallCommand = (scriptPath?: string) => { - return `bash -c "$(wget -qLO - https://github.com/community-scripts/${basePath}/raw/main/${script})"`; + return `bash -c "$(wget -qLO - https://github.com/community-scripts/${basePath}/raw/main/${scriptPath})"`; } export default function InstallCommand({ item }: { item: Script }) { @@ -54,12 +54,12 @@ export default function InstallCommand({ item }: { item: Script }) { {renderInstructions()} - {generateInstallCommand(defaultScript?.script)} + {getInstallCommand(defaultScript?.script)} {renderInstructions(true)} - {generateInstallCommand(alpineScript.script)} + {getInstallCommand(alpineScript.script)} @@ -67,7 +67,7 @@ export default function InstallCommand({ item }: { item: Script }) { <> {renderInstructions()} - {generateInstallCommand(defaultScript.script)} + {getInstallCommand(defaultScript.script)} ) : null}