Updated SC2245 (markdown)

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

@@ -3,6 +3,8 @@
### Problematic code: ### Problematic code:
```sh ```sh
#!/bin/ksh
if [ -f ksh* ] if [ -f ksh* ]
then then
echo "The file exists" echo "The file exists"
@@ -12,6 +14,8 @@ fi
### Correct code: ### Correct code:
```sh ```sh
#!/bin/ksh
for f in ksh* for f in ksh*
do do
if [ -f "$f" ] if [ -f "$f" ]