-
Notifications
You must be signed in to change notification settings - Fork 0
test: OCR munmiu bot #8
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||||||||||
| #!/bin/bash | ||||||||||||||
| greet() { | ||||||||||||||
| name=$1 | ||||||||||||||
| echo Hello $name | ||||||||||||||
| } | ||||||||||||||
| greet $USER | ||||||||||||||
|
Comment on lines
+4
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Variable expansions Suggestion:
Suggested change
|
||||||||||||||
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.
The script lacks
set -euo pipefail, which is a best practice for bash scripts. Without it, the script will continue executing even if a command fails or an unset variable is referenced, which can lead to silent errors and unpredictable behavior.-e: Exit immediately if a command exits with non-zero status.-u: Treat unset variables as an error.-o pipefail: Return the exit status of the last command in a pipeline that failed.Suggestion: