Révision 8550e097
Ajouté par Julien Enselme il y a plus de 9 ans
bin/d7-all-update-core.sh | ||
---|---|---|
30 | 30 |
# Get the new subversion number: |
31 | 31 |
# cd to $d7_dir, filter drush status to get the drupal version line, |
32 | 32 |
# remove end line whitespaces, and get the 2 last caracters of the string. |
33 |
drupal_version="$(cd "${d7_dir}" && drush status | grep "Drupal version" | tr -d ' ' | tail -c 3)"
|
|
33 |
drupal_version=$(cd "${d7_dir}" && drush status | grep "Drupal version" | tr -d ' ' | tail -c 3)
|
|
34 | 34 |
|
35 | 35 |
# Try to download new translation. If it fails, restore the old one. |
36 | 36 |
if ! curl -f "http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.${drupal_version}.fr.po" -o "${translations_fr}" ; then |
Formats disponibles : Unified diff
Command subsitution are not quoted. Quotes posed problems in loop.