Skip to content

Commit 009b599

Browse files
committed
Update mw.tpl
1 parent 1c45369 commit 009b599

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/init.d/mw.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ function AutoSizeStr(){
343343
}
344344

345345
mw_connect_mysql(){
346+
if [ "$SOURCE_LIST_LEN" == "0" ]; then
347+
echo -e "no data!"
348+
exit 1
349+
fi
350+
346351
cm_i=0
347352
for M in ${SOURCE_LIST_KEY[@]}; do
348353
num=`expr $cm_i + 1`

0 commit comments

Comments
 (0)