Skip to content

Commit 4baae01

Browse files
committed
Update Buttons.tsx
1 parent d000c35 commit 4baae01

File tree

1 file changed

+2
-1
lines changed
  • frontend/src/app/scripts/_components/ScriptItems

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ const generateInstallSourceUrl = (slug: string) => {
99
return `${baseUrl}/install/${slug}-install.sh`;
1010
};
1111

12-
const generateSourceUrl = (slug: string) => {
12+
const generateSourceUrl = (slug: string, type: string) => {
1313
const baseUrl = `https://raw.githubusercontent.com/community-scripts/${basePath}/main`;
14+
return type === "vm" ? `${baseUrl}/vm/${slug}.sh` : `${baseUrl}/misc/${slug}.sh`;
1415
return `${baseUrl}/misc/${slug}.sh`;
1516
};
1617

0 commit comments

Comments
 (0)