Skip to content

Commit 83c9865

Browse files
rcgaledanpovey
authored andcommitted
[egs] In egs/cmu_cslu_kids, adding some early error handling to avoid confusion down the line (#3785)
1 parent 7b762b1 commit 83c9865

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

egs/cmu_cslu_kids/s5/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ mkdir -p data/local
2525
if [ $stage -le 0 ]; then
2626
# Make soft link to the corpora
2727
if [ ! -e cmu_kids ]; then
28+
if [ ! -d $cmu_kids/kids ]; then echo "ERROR: Expected to find a directory called 'kids' in $cmu_kids. Exiting." && exit 1; fi
2829
ln -sf $cmu_kids cmu_kids
2930
fi
3031
if [ ! -e cslu ]; then
32+
if [ ! -d $cslu_kids/speech ]; then echo "ERROR: Expected to find a directory called 'speech' in $cslu_kids. Exiting." && exit 1; fi
3133
ln -sf $cslu_kids cslu
3234
fi
3335

0 commit comments

Comments
 (0)