Skip to content

Commit

Permalink
[scripts,egs] Fix shebangs on bash scripts to #!/usr/bin/env bash, fo…
Browse files Browse the repository at this point in the history
…r portability (#3881)
  • Loading branch information
esdeboer authored Jan 29, 2020
1 parent fd6aabb commit 48d2115
Show file tree
Hide file tree
Showing 2,514 changed files with 2,527 additions and 2,519 deletions.
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/chain/compare_wer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 Emotech LTD (Author: Xuechen Liu)

# compare wer between diff. models in aidatatang_200zh chain directory
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on run_tdnn_7h.sh in swbd chain recipe.

Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/chain/tuning/run_tdnn_2a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on run_tdnn_1a.sh.
# This setup used online pitch to train the neural network.
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2017 Xingyu Na
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/download_and_untar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014 Johns Hopkins University (author: Daniel Povey)
# 2017 Xingyu Na
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/format_data.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#

. ./path.sh
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/nnet3/compare_wer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 Emotech LTD (Author: Xuechen Liu)

# compare wer between diff. models in aidatatang_200zh nnet3 directory
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/nnet3/run_ivector_common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/nnet3/tuning/run_tdnn.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh

Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/prepare_dict.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#Copyright 2016 LeSpeech (Author: Xingyu Na)

# prepare dictionary for aidatatang
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/score.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e -o pipefail
set -x
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/local/train_lms.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash


# To be run from one directory above this script.
Expand Down
2 changes: 1 addition & 1 deletion egs/aidatatang_200zh/s5/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2019 Beijing DataTang Tech. Co. Ltd. (Author: Liyuan Wang)
# 2017 Hui Bu
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/aishell_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2017 Xingyu Na
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/aishell_prepare_dict.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2017 Xingyu Na
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/aishell_train_lms.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash


# To be run from one directory above this script.
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/chain/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on run_tdnn_7h.sh in swbd chain recipe.

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/chain/tuning/run_tdnn_2a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on run_tdnn_1a.sh.
# This setup used online pitch to train the neural network.
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/download_and_untar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014 Johns Hopkins University (author: Daniel Povey)
# 2017 Xingyu Na
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/nnet3/run_ivector_common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on swbd/s5c/local/nnet3/run_tdnn.sh

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/nnet3/tuning/run_tdnn_2a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on aishell/s5/local/nnet3/tuning/run_tdnn_1a.sh

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/score.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e -o pipefail
set -x
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2017 Beijing Shell Shell Tech. Co. Ltd. (Authors: Hui Bu)
# 2017 Jiayu Du
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/v1/local/aishell_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2017 Xingyu Na
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/v1/local/download_and_untar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014 Johns Hopkins University (author: Daniel Povey)
# 2017 Xingyu Na
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/v1/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2017 Beijing Shell Shell Tech. Co. Ltd. (Authors: Hui Bu)
# 2017 Jiayu Du
# 2017 Chao Li
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/chain/compare_wer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 Emotech LTD (Author: Xuechen LIU)
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/chain/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# this is the original baseline scripts, which is supposed to be deprecated.

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/chain/tuning/run_tdnn_1b.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# _1b is as _1a, but with pitch feats, i-vector and dropout schedule added, referenced from wsj

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/nnet3/compare_wer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 Emotech LTD (Author: Xuechen LIU)
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on swbd/s5c/local/nnet3/run_tdnn.sh

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/nnet3/tuning/run_tdnn_1b.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script is based on run_tdnn_1a.sh, but with pitch features applied

Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/prepare_all.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG)
# 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU)
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/prepare_data.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG)
# 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU)
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/prepare_dict.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG)
# 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU)
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/run_gmm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG)
# 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU)
# 2018 Emotech LTD (Author: Xuechen LIU)
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/score.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e -o pipefail
set -x
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/train_lms.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG)
# 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU)
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2018 AIShell-Foundation(Authors:Jiayu DU, Xingyu NA, Bengu WU, Hao ZHENG)
# 2018 Beijing Shell Shell Tech. Co. Ltd. (Author: Hui BU)
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_beamform.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)
# Apache 2.0
Expand Down
4 changes: 2 additions & 2 deletions egs/ami/s5/local/ami_download.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski, Jonathan Kilgour)
# Copyright 2015, Brno University of Technology (Author: Karel Vesely)
Expand Down Expand Up @@ -56,7 +56,7 @@ wgetfile=$wdir/wget_$mic.sh
manifest="wget --continue -O $adir/MANIFEST.TXT http://groups.inf.ed.ac.uk/ami/download/temp/amiBuild-0153-Tue-Oct-2-2018.manifest.txt"


echo "#!/bin/bash" > $wgetfile
echo "#!/usr/bin/env bash" > $wgetfile
echo $manifest >> $wgetfile

while read line; do
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_format_data.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#

if [ -f path.sh ]; then . ./path.sh; fi
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_ihm_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)
# AMI Corpus training data preparation
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_ihm_scoring_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)
# AMI Corpus dev/eval data preparation
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_mdm_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)
# AMI Corpus dev/eval data preparation
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_mdm_scoring_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)
# AMI Corpus dev/eval data preparation
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_prepare_dict.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#adapted from fisher dict preparation script, Author: Pawel Swietojanski

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_sdm_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)
# AMI Corpus dev/eval data preparation
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_sdm_scoring_data_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)
# AMI Corpus dev/eval data preparation
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_text_prep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2015, Brno University of Technology (Author: Karel Vesely)
# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski), 2014, Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_train_lms.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2013 Arnab Ghoshal, Pawel Swietojanski

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/ami_xml2text.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright, University of Edinburgh (Pawel Swietojanski and Jonathan Kilgour)

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/beamformit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2014, University of Edinburgh (Author: Pawel Swietojanski)

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/chain/run_blstm_ami_5.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash


###
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/chain/run_chain_common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# this script has common stages shared across AMI chain recipes
set -e
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/chain/run_tdnn_ami_5.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#adapted from swbd's local/chain/6z.sh script. We change the TDNN config
# These are the other modifications:
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/confidence_calibration.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
. ./cmd.sh
. ./path.sh

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/nnet/prepare_ivectors.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2016, Brno University of Technology (Author: Karel Vesely)
# Apache 2.0
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/nnet3/prepare_parallel_datadirs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# this script creates a new data directory data/$new_mic
# where the train, dev and eval directories are copied from $original_mic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script creates the parallel data dir based on ihm data,
# creates speed perturbed versions of this parallel data
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/nnet3/prepare_perturbed_alignments.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script creates speed perturbed versions of the training data
# and generates the corresponding alignments
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/nnet3/run_ivector_common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# this script contains some common (shared) parts of the run_nnet*.sh scripts.
# speed perturbation is done for the training data
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/nnet3/run_lstm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright 2015 Johns Hopkins University (Author: Daniel Povey).
# 2015 Vijayaditya Peddinti
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5/local/nnet3/run_tdnn.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# this is the standard "tdnn" system, built in nnet3; it's what we use to
# call multi-splice.
Expand Down
Loading

0 comments on commit 48d2115

Please sign in to comment.