Skip to content
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

无错误的情况下退出码为非0数字 #94

Closed
MaleicAcid opened this issue May 24, 2024 · 1 comment
Closed

无错误的情况下退出码为非0数字 #94

MaleicAcid opened this issue May 24, 2024 · 1 comment

Comments

@MaleicAcid
Copy link

MaleicAcid commented May 24, 2024

root@hostname:~# sb -n
......
The script runs today: .....
root@hostname:~# echo $?
1

目前脚本成功执行后,是以1作为退出码的, 希望遵循Bash对错误码的约定:

"For the shell’s purposes, a command which exits with a zero exit status has succeeded"
see ref@https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html

@MaleicAcid MaleicAcid changed the title 无错误的情况下不应该以非0数字作为退出码 无错误的情况下退出码为非0数字 May 24, 2024
@fscarmen
Copy link
Owner

下次更新的时候处理

image

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

No branches or pull requests

2 participants