mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2242 (markdown)
@@ -21,7 +21,7 @@ String data should be written stdout, before an `exit 0` to exit with success.
|
|||||||
|
|
||||||
Errors should instead be written to stderr, with an `exit 1` (or higher) to exit with failure:
|
Errors should instead be written to stderr, with an `exit 1` (or higher) to exit with failure:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
if [ ! -f "$1" ]
|
if [ ! -f "$1" ]
|
||||||
then
|
then
|
||||||
echo "$1 is not a regular file" >&2
|
echo "$1 is not a regular file" >&2
|
||||||
|
Reference in New Issue
Block a user