From a987857df5e448437c8a0025344cc2a8d79c5972 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 19 Sep 2019 09:49:12 +0200 Subject: [PATCH] Fix upstream_translation_update The HORIZON_DIR parameter is the last one, the previous change missed the number 3. Update to fix. This script still has Zuul v3 compatitibility, remove it. Change-Id: Ib89d44225de4bd171594659647408900321f23e9 --- .../files/upstream_translation_update.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/roles/prepare-zanata-client/files/upstream_translation_update.sh b/roles/prepare-zanata-client/files/upstream_translation_update.sh index 4b5d50e7..ad3a7e3a 100755 --- a/roles/prepare-zanata-client/files/upstream_translation_update.sh +++ b/roles/prepare-zanata-client/files/upstream_translation_update.sh @@ -14,17 +14,11 @@ PROJECT=$1 JOBNAME=$2 -HORIZON_DIR=$3 +BRANCHNAME=$3 +HORIZON_DIR=$4 # Replace /'s in branch names with -'s because Zanata doesn't # allow /'s in version names. -# Zuul v3 native job passes the branch in as parameter but -# does not set ZUUL_REFNAME. -if [ -z "$ZUUL_REFNAME" ] ; then - BRANCHNAME=$3 -else - BRANCHNAME=$ZUUL_REFNAME -fi ZANATA_VERSION=${BRANCHNAME//\//-} SCRIPTSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"