Skip to content

Conversation

@luojiyin1987
Copy link
Contributor

No description provided.

@luojiyin1987
Copy link
Contributor Author

@lispking Please check the review

@stefan-mysten
Copy link
Collaborator

@luojiyin1987 thanks for this PR. I will have a look asap.

Copy link

@jnaulty jnaulty left a comment

Choose a reason for hiding this comment

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

Great feature addition to the suiup install.sh script.
I have some requested changes (primarily merging download_checksum + download_file)

@luojiyin1987 luojiyin1987 requested a review from jnaulty July 30, 2025 03:53
@stefan-mysten
Copy link
Collaborator

Thanks for the fixes @luojiyin1987, I will have a look very soon (it's been busy and there's a lot of PRs from you to review, which is great but it takes a bit of time).

@luojiyin1987
Copy link
Contributor Author

I'm sorry , did not click show all
image

@stefan-mysten
Copy link
Collaborator

I'm sorry , did not click show all image

No worries at all, nothing to be sorry about!

@MystenLabs MystenLabs deleted a comment from gh-comment-guard bot Aug 4, 2025
- Make MD5 verification consistent with SHA256 behavior
- Treat malformed checksum files as skipped verification instead of failure
- Add clear warning messages and skip reasons
- Improve user experience while maintaining security awareness
### 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
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
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
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants