mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
Fix a small typo in README.md
The negated -f test is checking whether the path is *not* a regular file, so I have updated the comment to match.
This commit is contained in:
parent
39d51b1be1
commit
0dafb516cb
@ -266,7 +266,7 @@ Examples:
|
||||
|
||||
```javascript
|
||||
if (test('-d', path)) { /* do something with dir */ };
|
||||
if (!test('-f', path)) continue; // skip if it's a regular file
|
||||
if (!test('-f', path)) continue; // skip if it's not a regular file
|
||||
```
|
||||
|
||||
Evaluates expression using the available primaries and returns corresponding value.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user