From 67203617eb924b08fafda95dc4d8b4e00a647a9d Mon Sep 17 00:00:00 2001 From: Takayama Fumihiko Date: Wed, 5 Sep 2018 13:52:37 +0900 Subject: [PATCH] [egs] Fix an issue that `egs/csj/s5/local/csj_data_prep.sh` always fails if target file (`$dir/lexicon.txt`) already exists. --- egs/csj/s5/local/csj_data_prep.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/egs/csj/s5/local/csj_data_prep.sh b/egs/csj/s5/local/csj_data_prep.sh index 55738bf0e37..69e2865e316 100755 --- a/egs/csj/s5/local/csj_data_prep.sh +++ b/egs/csj/s5/local/csj_data_prep.sh @@ -45,7 +45,9 @@ if [ ! -d $CSJ ]; then fi # CSJ dictionary file check -[ ! -f $dir/lexicon.txt ] && cp $CSJ/lexicon/lexicon.txt $dir || exit 1; +if [ ! -f $dir/lexicon.txt ]; then + cp $CSJ/lexicon/lexicon.txt $dir || exit 1; +fi ### Config of using wav data that relates with acoustic model training ### if [ $mode -eq 3 ]