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.
This commit is contained in:
davide
2025-04-09 20:45:57 +02:00
parent f4c5d7109e
commit ff602f5fb6
2 changed files with 8 additions and 2 deletions

View File

@@ -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 )

View File

@@ -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