Update index.tsx

This commit is contained in:
Stefan Pejcic
2024-06-01 15:38:52 +02:00
committed by GitHub
parent d5cf507b1b
commit 384c967a24

View File

@@ -59,11 +59,11 @@ const Install: React.FC = () => {
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 (option === "screenshots" && installOptions[option].value === "local") { // Modified
command += ` --screenshots=local`; // Modified
if (installOptions[option].value !== "") {
if (option === "screenshots" && installOptions[option].value === "local") {
command += ` --screenshots=local`;
} else if (option !== "screenshots") {
command += ` --${option.replace(/-/g, '_')}=${installOptions[option].value}`;
command += ` --${option}${installOptions[option].value === true ? '' : `=${installOptions[option].value}`}`;
}
}
}
@@ -71,6 +71,7 @@ const Install: React.FC = () => {
return command;
};
return (
<CommonLayout>
<Head title="Install | OpenPanel">