Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ With `suiup`, you can:

### From Script
```bash
curl -sSfL https://raw.githubusercontent.com/Mystenlabs/suiup/main/install.sh | sh
curl -sSfL https://raw.githubusercontent.com/Mystenlabs/suiup/main/install.sh | bash
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why to change to bash?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

local is a keyword specific to bash, used to declare local variables. There is no local keyword in standard sh.
local ist nicht Teil des POSIX-Shell-Standards.

On Linux distributions (such as CentOS, Fedora, RHEL, openSUSE, macOS), /bin/sh is indeed a symbolic link (symlink) pointing to /bin/bash. So in most cases, there is no problem.

In Debian and its derivatives (such as Ubuntu), /bin/sh does not point to bash by default, but rather to a lighter-weight shell that more strictly adheres to POSIX standards—dash. This differs from bash support.

In order to detect problems earlier, it is recommended to use bash.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use shellcheck to check compatibility between different shells @stefan-mysten

```

> [!TIP]
> Set `SUIUP_INSTALL_DIR` environment variable to customize the installation directory: `SUIUP_INSTALL_DIR=/custom/path curl -sSfL ... | sh`
> Set `SUIUP_INSTALL_DIR` environment variable to customize the installation directory: `SUIUP_INSTALL_DIR=/custom/path curl -sSfL ... | bash`

### From Cargo
```bash
Expand Down
Loading