From 1dcdd5f8a618ba7ea7eb8d7c9b5f3d0acf5a3d9d Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 25 七月 2023 14:07:27 +0800
Subject: [PATCH] Update readme.md

---
 egs_modelscope/asr/TEMPLATE/infer.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/egs_modelscope/asr/TEMPLATE/infer.sh b/egs_modelscope/asr/TEMPLATE/infer.sh
index cbbe5e6..ef49d7a 100644
--- a/egs_modelscope/asr/TEMPLATE/infer.sh
+++ b/egs_modelscope/asr/TEMPLATE/infer.sh
@@ -36,7 +36,7 @@
 done
 perl utils/split_scp.pl ${data_dir}/wav.scp ${split_scps}
 
-if -n ${checkpoint_dir}; then
+if [ -n "${checkpoint_dir}" ]; then
   python utils/prepare_checkpoint.py ${model} ${checkpoint_dir} ${checkpoint_name}
   model=${checkpoint_dir}/${model}
 fi

--
Gitblit v1.9.1