-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multinode-demo: Automatically add rsync:// prefix to URLs that need it #466
Conversation
rsync_url() { # adds the 'rsync://` prefix to URLs that need it | ||
local url="$1" | ||
|
||
if [[ "$url" =~ ^.*:.*$ ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can do this more simply, if you like: ${url} != ${url%:*}
[rwalker@anodyne .ssh]$ hi=foothere
[rwalker@anodyne .ssh]$ [[ $hi != ${hi%:*} ]] && echo colon!
[rwalker@anodyne .ssh]$ hi=foo:there
[rwalker@anodyne .ssh]$ [[ $hi != ${hi%:*} ]] && echo colon!
colon!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I prefer the existing form so imma keep it as is
@@ -47,3 +47,22 @@ export RUST_BACKTRACE=1 | |||
[[ $(uname) = Linux ]] && (set -x; sudo sysctl -w net.core.rmem_max=26214400 1>/dev/null 2>/dev/null) | |||
|
|||
SOLANA_CONFIG_DIR=${SNAP_DATA:-$PWD}/config | |||
|
|||
rsync_url() { # adds the 'rsync://` prefix to URLs that need it | |||
local url="$1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer declare
over local
, same meaning, can be used outside functions
:) |
* fix: add Account.rent_epoch field * fix: rebuild bpf test fixtures
…ana-labs#466) * fix: add Account.rent_epoch field * fix: rebuild bpf test fixtures
* fix: add Account.rent_epoch field * fix: rebuild bpf test fixtures
ci: add release pipeline (#466) (cherry picked from commit 212cbdb) Co-authored-by: Yihau Chen <[email protected]>
ci: add release pipeline (#466) (cherry picked from commit 212cbdb) Co-authored-by: Yihau Chen <[email protected]>
…-labs#486) ci: add release pipeline (solana-labs#466) (cherry picked from commit 212cbdb) Co-authored-by: Yihau Chen <[email protected]>
…-labs#487) ci: add release pipeline (solana-labs#466) (cherry picked from commit 212cbdb) Co-authored-by: Yihau Chen <[email protected]>
…-labs#486) ci: add release pipeline (solana-labs#466) (cherry picked from commit 212cbdb) Co-authored-by: Yihau Chen <[email protected]>
Things like this now work, which is much more ergonomic: