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:
parent
e2c0f52363
commit
a987857df5
@ -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 )"
|
||||
|
Loading…
Reference in New Issue
Block a user