Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4503840

Browse files
committedMay 9, 2020
Minor fixes
1 parent 0cc091f commit 4503840

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ That's not a good idea. Use the following code instead
154154
# do something
155155

156156
if [[ $? -ge 1 ]]; then
157-
_error "$FUNCNAME has some internal error"
157+
_error "${FUNCNAME[0]} has some internal error"
158158
fi
159159
}
160160

@@ -170,7 +170,7 @@ save the variable to a local variable. For example,
170170

171171
_do_something_critical
172172
local _ret="$?"
173-
# from now, $? is zero, because the latest statement (assignment)
173+
# from now on, $? is zero, because the latest statement (assignment)
174174
# (always) returns zero.
175175

176176
_do_something_terrible
@@ -222,7 +222,7 @@ value, don't trust it twice.
222222
It's recommended to emphasize the needs of your variables before your
223223
script actually starts. In the following example, the script just stops
224224
when `SOME_VARIABLE` or `OTHER_VARIABLE` is not defined; these checks
225-
are done just before any execution of the main routine is processed.
225+
are done just before any execution of the main routine(s).
226226

227227
```
228228
: a lot of method definitions

0 commit comments

Comments
 (0)
Please sign in to comment.