From 00812ab1fc36428d227f2b5b43dbbc7d3ef8e615 Mon Sep 17 00:00:00 2001 From: Yash Khare Date: Mon, 9 Sep 2024 20:22:04 +0530 Subject: [PATCH 1/2] fix: one click Signed-off-by: Yash Khare --- src/OneClickInstall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OneClickInstall.ts b/src/OneClickInstall.ts index 0bbf4c5..8102f6c 100644 --- a/src/OneClickInstall.ts +++ b/src/OneClickInstall.ts @@ -5,7 +5,7 @@ export default function executeKeployOneClickCommand(): void { const checkKeployExistsCommand = `keploy`; // The command to download and install Keploy - const installationCommand = `curl --show-error -L https://keploy.io/install.sh -o /tmp/install.sh && chmod +x /tmp/install.sh && source /tmp/install.sh -noRoot`; + const installationCommand = `curl --show-error -L https://keploy.io/install.sh -o /tmp/install.sh && chmod +x /tmp/install.sh && . /tmp/install.sh -noRoot`; exec(checkKeployExistsCommand, (error, stdout, stderr) => { if (error) { From 6ca349e2984ecded0658a85391dc944c1bf04c77 Mon Sep 17 00:00:00 2001 From: Shivam Sourav Jha <60891544+shivamsouravjha@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:39:41 +0530 Subject: [PATCH 2/2] Update OneClickInstall.ts Signed-off-by: Shivam Sourav Jha <60891544+shivamsouravjha@users.noreply.github.com> --- src/OneClickInstall.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/OneClickInstall.ts b/src/OneClickInstall.ts index 8102f6c..a2c2a33 100644 --- a/src/OneClickInstall.ts +++ b/src/OneClickInstall.ts @@ -5,8 +5,7 @@ export default function executeKeployOneClickCommand(): void { const checkKeployExistsCommand = `keploy`; // The command to download and install Keploy - const installationCommand = `curl --show-error -L https://keploy.io/install.sh -o /tmp/install.sh && chmod +x /tmp/install.sh && . /tmp/install.sh -noRoot`; - + const installationCommand = `curl --silent -O -L https://keploy.io/install.sh -o /tmp/install.sh && chmod +x /tmp/install.sh && bash /tmp/install.sh -noRoot`; exec(checkKeployExistsCommand, (error, stdout, stderr) => { if (error) { // Execute the installation command @@ -20,4 +19,4 @@ export default function executeKeployOneClickCommand(): void { console.log(`Keploy is already installed: ${stdout}`); } }); -} \ No newline at end of file +}