Skip to content

Commit ea559e7

Browse files
authored
Enhance getInstallCommand to support Alpine variant in InstallCommand component (#281)
1 parent 36b9452 commit ea559e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { basePath } from "@/config/siteConfig";
44
import { Script } from "@/lib/types";
55
import { getDisplayValueFromType } from "../ScriptInfoBlocks";
66

7-
const getInstallCommand = (scriptPath?: string) => {
8-
return `bash -c "$(wget -qLO - https://github.com/community-scripts/${basePath}/raw/main/${scriptPath})"`;
7+
const getInstallCommand = (scriptPath?: string, isAlpine = false) => {
8+
return `bash -c "$(wget -q${isAlpine ? "" : "L"}O - https://github.com/community-scripts/${basePath}/raw/main/${scriptPath})"`;
99
};
1010

1111
export default function InstallCommand({ item }: { item: Script }) {
@@ -67,7 +67,7 @@ export default function InstallCommand({ item }: { item: Script }) {
6767
<TabsContent value="alpine">
6868
{renderInstructions(true)}
6969
<CodeCopyButton>
70-
{getInstallCommand(alpineScript.script)}
70+
{getInstallCommand(alpineScript.script, true)}
7171
</CodeCopyButton>
7272
</TabsContent>
7373
</Tabs>

0 commit comments

Comments
 (0)