From a8a849ce0556951cc8fb6b0a06ab6391c23e25e7 Mon Sep 17 00:00:00 2001
From: yhliang <68215459+yhliang-aslp@users.noreply.github.com>
Date: 星期日, 23 四月 2023 20:15:33 +0800
Subject: [PATCH] Merge pull request #406 from alibaba-damo-academy/main

---
 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 134a8ad..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 ${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