Updated SC2245 (markdown)

Rushen Wang
2024-09-10 09:31:11 +08:00
parent 96288ac782
commit 702f6917bf

@@ -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" ]