From 274abee370a5c2d4d430d22b439e26c209607ef5 Mon Sep 17 00:00:00 2001
From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com>
Date: Wed, 6 Nov 2024 22:07:11 +0100
Subject: [PATCH] Update
src/app/scripts/_components/ScriptItems/InstallCommand.tsx
---
.../scripts/_components/ScriptItems/InstallCommand.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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}