FIX: 修复下载解压完成LibriTTS数据时,生成.complete文件失败,这导致每次执行download_and_untar.sh时都要重新下载数据。

This commit is contained in:
cyz
2024-07-13 19:27:24 +08:00
parent d1df60590a
commit 72b52b0331

View File

@@ -43,7 +43,7 @@ if [ -z "$url" ]; then
exit 1
fi
if [ -f $data/LibriSpeech/$part/.complete ]; then
if [ -f $data/LibriTTS/$part/.complete ]; then
echo "$0: data part $part was already successfully extracted, nothing to do."
exit 0
fi
@@ -87,7 +87,7 @@ if ! tar -C $data -xvzf $data/$part.tar.gz; then
exit 1
fi
touch $data/LibriSpeech/$part/.complete
touch $data/LibriTTS/$part/.complete
echo "$0: Successfully downloaded and un-tarred $data/$part.tar.gz"