Account for both possible projects.yaml names
We're about to rename projects.yaml from review.projects.yaml.erb to review.projects.yaml and this script needs to know about that. Change-Id: I84f2caee8aeccb7816c9d367557f3bd0e8315ecf
This commit is contained in:
parent
a420237aa0
commit
18870e4a5e
@ -5,12 +5,16 @@
|
|||||||
|
|
||||||
export TMPDIR=`/bin/mktemp -d`
|
export TMPDIR=`/bin/mktemp -d`
|
||||||
trap "rm -rf $TMPDIR" EXIT
|
trap "rm -rf $TMPDIR" EXIT
|
||||||
|
if [ -f $OLDPWD/modules/openstack_project/templates/review.projects.yaml.erb ]
|
||||||
|
then
|
||||||
|
PROJECTS_LIST=$OLDPWD/modules/openstack_project/templates/review.projects.yaml.erb
|
||||||
|
else
|
||||||
|
PROJECTS_LIST=$OLDPWD/modules/openstack_project/files/review.projects.yaml
|
||||||
|
fi
|
||||||
|
|
||||||
pushd $TMPDIR
|
pushd $TMPDIR
|
||||||
|
|
||||||
sed -e '/^- project: /!d' -e 's/^- project: //' \
|
sed -e '/^- project: /!d' -e 's/^- project: //' $PROJECTS_LIST > projects_list
|
||||||
$OLDPWD/modules/openstack_project/templates/review.projects.yaml.erb \
|
|
||||||
> projects_list
|
|
||||||
|
|
||||||
LC_ALL=C sort --ignore-case projects_list -o projects_list.sorted
|
LC_ALL=C sort --ignore-case projects_list -o projects_list.sorted
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user