-
Notifications
You must be signed in to change notification settings - Fork 3.3k
kube-init.sh: die is not a command #873
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
Conversation
Welcome @TomasTomecek! |
/cc @yliaog |
do you know why 'die' is not available? |
/cc I think it would be OK as long as the exit return value makes sense. |
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.
Why do you want to return 33?
would you ask me this question if I wrote 1, 2 or 3? I dunno, it's just a number, no meaning. |
I probably still would have asked if you returned 2 or 3. 1 is commonly used for error exits isn't it? Another reason I asked is that the original behavior (probably) wants to return the line number that it exited from. I'll have to leave the judgment to Roy and Yu on this one. I'm fine with it if they say it's ok. |
https://shapeshed.com/unix-exit-codes/ 1 is likely a better choice. I'm curious about what happened? the script has been in existence since 2017. what change has caused the problem? |
Signed-off-by: Tomas Tomecek <[email protected]>
I used the script in a vagrant VM to run tests - sadly minikube did not start and since there is no |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TomasTomecek, yliaog The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
die is not a shell command