diff options
author | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2017-11-09 15:03:25 +0300 |
---|---|---|
committer | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2017-11-09 15:03:25 +0300 |
commit | 6c5f234655910fcdc2ff88ee26658645c5a1e3ce (patch) | |
tree | aadcba9d5b0af46a55839c0113415c6ec3adf845 /examples | |
parent | b26cdfb74cc4e2eebd52144c337b87cc4bc01eee (diff) |
Fix cloning tools
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/training/run-me.sh | 4 | ||||
-rwxr-xr-x | examples/transformer/run-me.sh | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/training/run-me.sh b/examples/training/run-me.sh index 1ffed737..ad654494 100755 --- a/examples/training/run-me.sh +++ b/examples/training/run-me.sh @@ -15,8 +15,8 @@ then fi # download dependencies and data -if cd moses-scripts; then git pull; cd .. else git clone https://github.com/amunmt/moses-scripts; fi -if cd subword-nmt; then git pull; cd .. else git clone https://github.com/rsennrich/subword-nmt; fi +if [ ! -e moses-scripts ]; then git clone https://github.com/amunmt/moses-scripts; fi +if [ ! -e subword-nmt ]; then git clone https://github.com/rsennrich/subword-nmt; fi if [ ! -e "data/corpus.en" ] then diff --git a/examples/transformer/run-me.sh b/examples/transformer/run-me.sh index 15469342..34ad975d 100755 --- a/examples/transformer/run-me.sh +++ b/examples/transformer/run-me.sh @@ -15,9 +15,9 @@ then fi # download dependencies and data -if cd moses-scripts; then git pull; cd .. else git clone https://github.com/amunmt/moses-scripts; fi -if cd subword-nmt; then git pull; cd .. else git clone https://github.com/rsennrich/subword-nmt; fi -if cd sacreBLEU; then git pull; cd .. else git clone https://github.com/mjpost/sacreBLEU; fi +if [ ! -e moses-scripts ]; then git clone https://github.com/amunmt/moses-scripts; fi +if [ ! -e subword-nmt ]; then git clone https://github.com/rsennrich/subword-nmt; fi +if [ ! -e sacreBLEU ]; then git clone https://github.com/mjpost/sacreBLEU; fi if [ ! -e "data/corpus.en" ] then |