-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
remove export from shell session to avoid the inconsistency #22932
remove export from shell session to avoid the inconsistency #22932
Conversation
root@edgemaster:~# CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/master/stable.txt)
root@edgemaster:~# CLI_ARCH=amd64
root@edgemaster:~# if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi
root@edgemaster:~# env | grep CLI
root@edgemaster:~# export CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/master/stable.txt)
root@edgemaster:~# export CLI_ARCH=amd64
root@edgemaster:~# if [ "$(uname -m)" = "aarch64" ]; then CLI_ARCH=arm64; fi
root@edgemaster:~# env | grep CLI
CLI_ARCH=amd64
CILIUM_CLI_VERSION=v0.12.11 |
Hi @fujitatomoya and thanks for the PR. Theses variables don't need to be exported for the steps to work, instead of |
Another argument in favour of removing unnecessary |
Okay, that also makes sense to me. I wasnt clear that if those are intended to be shell variables or environmental variable using terminal console. probably just remove |
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
424f9f8
to
cb1dc2c
Compare
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.
Looks good, thank you
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.
Thanks @fujitatomoya!
This is purely a doc change patch, no need for a full CI run and all reviews are in so marking as |
Description
adding
export
to be environmental variable would be better for user-friendly installation doc, because that user would be likely to copy and paste the command described in this shell session to the terminal to process the installation.Signed-off-by: Tomoya Fujita Tomoya.Fujita@sony.com
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.