Skip to content

Commit b7440a7

Browse files
committed
🐛 fix: bug of shell syntax
- not use continue outside for loop
1 parent 5d7d00e commit b7440a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/ztoq.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
FILE=$1
44

5-
if [[ $FILE != ./articles/* ]]; then
6-
continue
5+
if [ $FILE != ./articles/* ]; then
6+
exit 0
77
fi
88

99
FILENAME=$(basename $FILE .md)

0 commit comments

Comments
 (0)