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
This commit is contained in:
Andreas Jaeger 2019-09-19 09:49:12 +02:00
parent e2c0f52363
commit a987857df5

View File

@ -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 )"