Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-11-09 15:03:25 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-11-09 15:03:25 +0300
commit6c5f234655910fcdc2ff88ee26658645c5a1e3ce (patch)
treeaadcba9d5b0af46a55839c0113415c6ec3adf845 /examples
parentb26cdfb74cc4e2eebd52144c337b87cc4bc01eee (diff)
Fix cloning tools
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/training/run-me.sh4
-rwxr-xr-xexamples/transformer/run-me.sh6
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