Change directories to os-service-types during update

The update script framework calls the update function with an argument
of the directory of the project we're trying to update. The update
script needs to pushd into it before curling the new content.

Change-Id: Ic569aee5716ca32e755adda02f149359b532c4fc
This commit is contained in:
Monty Taylor 2018-02-07 09:53:08 -06:00
parent 1e48e84b69
commit 27a0666385
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -79,7 +79,9 @@ elif [ "$OWN_PROJECT" == "os-service-types" ] ; then
TOPIC="openstack/os-service-types/sync-service-types-authority"
PROJECTS="openstack/os-service-types"
function update {
pushd $1
curl https://service-types.openstack.org/service-types.json > os_service_types/data/service-types.json
popd
}
else
echo "Unknown project $1" >2