From 1e8c6eedf05651598a9d93316f44ca6958572b48 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 11 Feb 2016 20:56:24 +0100 Subject: [PATCH] Make propose_translation_update more robust If there're no translations at all, the locale directory is empty but we try to add content and that fails like: + git add 'ironic_ui/locale/*' | fatal: pathspec 'ironic_ui/locale/*' did not match any files Do not use a wildcard, just add the directory. That way the git command and will not fail - and the rest of the script works fine. Change-Id: I2a67b692f437a1bced9507e66cce217765d5d913 --- jenkins/scripts/propose_translation_update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkins/scripts/propose_translation_update.sh b/jenkins/scripts/propose_translation_update.sh index 6118101d06..0a38155b9b 100755 --- a/jenkins/scripts/propose_translation_update.sh +++ b/jenkins/scripts/propose_translation_update.sh @@ -99,7 +99,7 @@ function propose_python { # Some files were changed, add changed files again to git, so that we # can run git diff properly. - git add $modulename/locale/* + git add $modulename/locale/ } function propose_horizon { @@ -116,7 +116,7 @@ function propose_horizon { compress_po_files "openstack_dashboard" # Add all changed files to git - git add horizon/locale/* openstack_dashboard/locale/* + git add horizon/locale/ openstack_dashboard/locale/ } # This function can be used for all django projects @@ -133,7 +133,7 @@ function propose_django { compress_po_files "$modulename" # Add all changed files to git - git add $modulename/locale/* + git add $modulename/locale/ } # Setup git repository for git review.