Update index.tsx

This commit is contained in:
Stefan Pejcic 2024-06-01 15:42:25 +02:00 committed by GitHub
parent 83f589bcd9
commit 9b21ceecc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,15 +55,16 @@ const Install: React.FC = () => {
}));
};
const generateInstallCommand = () => {
let command = "bash <(curl -sSL https://get.openpanel.co/)";
for (const option in installOptions) {
if (option !== "version" || (option === "version" && installOptions[option].value !== latestVersion)) {
if (installOptions[option].value !== "") {
if (installOptions[option].value) {
if (option === "screenshots" && installOptions[option].value === "local") {
command += ` --screenshots=local`;
} else if (option !== "screenshots") {
command += ` --${option}${installOptions[option].value === true ? '' : `=${installOptions[option].value}`}`;
} else {
command += ` --${option.replace(/-/g, '_')}`;
}
}
}
@ -72,6 +73,7 @@ const Install: React.FC = () => {
};
return (
<CommonLayout>
<Head title="Install | OpenPanel">