File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ That's not a good idea. Use the following code instead
154
154
# do something
155
155
156
156
if [[ $? -ge 1 ]]; then
157
- _error "$FUNCNAME has some internal error"
157
+ _error "${ FUNCNAME[0]} has some internal error"
158
158
fi
159
159
}
160
160
@@ -170,7 +170,7 @@ save the variable to a local variable. For example,
170
170
171
171
_do_something_critical
172
172
local _ret="$?"
173
- # from now, $? is zero, because the latest statement (assignment)
173
+ # from now on , $? is zero, because the latest statement (assignment)
174
174
# (always) returns zero.
175
175
176
176
_do_something_terrible
@@ -222,7 +222,7 @@ value, don't trust it twice.
222
222
It's recommended to emphasize the needs of your variables before your
223
223
script actually starts. In the following example, the script just stops
224
224
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) .
226
226
227
227
```
228
228
: a lot of method definitions
You can’t perform that action at this time.
0 commit comments