We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb66b6 commit c4deae8Copy full SHA for c4deae8
README.md
@@ -321,9 +321,9 @@ can be refactored as below
321
322
set +e
323
if _do_some_critical_check; then
324
- echo "Oh, it's better now"
+ echo "Something has gone very well."
325
fi
326
-echo "Oh, you will always see this line."
+echo "You will see this line."
327
```
328
329
Now, if you expect to stop the script when `_do_some_critical_check` fails
@@ -333,9 +333,9 @@ Okay, these lines are the correct one
333
334
```bash
335
336
-set -e
+set +e
337
338
+ echo "All check passed."
339
else
340
echo "Something wrong we have to stop here"
341
exit 1 # or return 1
0 commit comments