Skip to content

Commit cbc7284

Browse files
committed
Modify code to conform to ShellCheck specifications
1 parent 3947a4b commit cbc7284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

egs/xbmu_amdo31/s5/local/nnet3/tuning/run_tdnn_2a.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ if [ $stage -le 11 ]; then
122122
# previous utterances of the same speaker.
123123
for decode_set in dev test; do
124124
# num_jobs=`cat data/${decode_set}_hires_online/utt2spk|cut -d' ' -f2|sort -u|wc -l`
125-
num_jobs=$(cat "data/${decode_set}_hires_online/utt2spk" | cut -d' ' -f2 | sort -u | wc -l)
125+
num_jobs=$(< "data/${decode_set}_hires_online/utt2spk" cut -d' ' -f2 | sort -u | wc -l)
126126
decode_dir=${dir}_online/decode_$decode_set
127127
steps/online/nnet3/decode.sh --nj $num_jobs --cmd "$decode_cmd" \
128128
--config conf/decode.config \
@@ -135,7 +135,7 @@ if [ $stage -le 12 ]; then
135135
# without carrying forward speaker information.
136136
for decode_set in dev test; do
137137
# num_jobs=`cat data/${decode_set}_hires_online/utt2spk|cut -d' ' -f2|sort -u|wc -l`
138-
num_jobs=$(cat "data/${decode_set}_hires_online/utt2spk" | cut -d' ' -f2 | sort -u | wc -l)
138+
num_jobs=$(< "data/${decode_set}_hires_online/utt2spk" cut -d' ' -f2 | sort -u | wc -l)
139139
decode_dir=${dir}_online/decode_${decode_set}_per_utt
140140
steps/online/nnet3/decode.sh --nj $num_jobs --cmd "$decode_cmd" \
141141
--config conf/decode.config --per-utt true \

0 commit comments

Comments
 (0)