From ff602f5fb6d3518e79b1b5a3f51e54e08c73f1bf Mon Sep 17 00:00:00 2001 From: davide Date: Wed, 9 Apr 2025 20:45:57 +0200 Subject: [PATCH] feat: fix quick install by switching from process substitution to pipe The previous command used process substitution: bash <(curl -fsSL ...) This can fail on some systems due to how /dev/fd handles file descriptors, especially when using sudo. The new approach uses a pipe instead: curl -fsSL ... | sudo bash This is more portable and avoids permission issues related to temp files. --- README.md | 2 +- scripts/COMPOSE-DEPLOY.md | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff1cde1..5d8ec55 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Watch live demo video showcasing the CK-X Simulator in action: #### Linux & macOS ```bash -bash <(curl -fsSL https://raw.githubusercontent.com/nishanb/ck-x/master/scripts/install.sh) +curl -fsSL https://raw.githubusercontent.com/nishanb/ck-x/master/scripts/install.sh | bash ``` #### Windows ( Windows installation is unstable and not supported yet, may break during setup ) diff --git a/scripts/COMPOSE-DEPLOY.md b/scripts/COMPOSE-DEPLOY.md index 6970284..291abd1 100644 --- a/scripts/COMPOSE-DEPLOY.md +++ b/scripts/COMPOSE-DEPLOY.md @@ -17,7 +17,13 @@ This guide provides instructions for deploying the CK-X Simulator on different o Open Terminal and run: ```bash -bash <(curl -fsSL https://raw.githubusercontent.com/nishanb/CK-X/master/scripts/install.sh) +curl -fsSL https://raw.githubusercontent.com/nishanb/CK-X/master/scripts/install.sh | bash +``` + +or, if the current user does not have the permission to run docker commands: + +```bash +curl -fsSL https://raw.githubusercontent.com/nishanb/CK-X/master/scripts/install.sh | sudo bash ``` ### Windows