mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2245 (markdown)
@@ -3,6 +3,8 @@
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
#!/bin/ksh
|
||||
|
||||
if [ -f ksh* ]
|
||||
then
|
||||
echo "The file exists"
|
||||
@@ -12,6 +14,8 @@ fi
|
||||
### Correct code:
|
||||
|
||||
```sh
|
||||
#!/bin/ksh
|
||||
|
||||
for f in ksh*
|
||||
do
|
||||
if [ -f "$f" ]
|
||||
|
Reference in New Issue
Block a user