Exclude target subdir from source for infra pubs

* infra-publications.yaml: Address the "cannot move _out to a
subdirectory of itself" error which prematurely terminates the
infra-publications-publish job.

Change-Id: I091f5e9f6efe3e32295cc139c2db2b5e58c8924c
This commit is contained in:
Jeremy Stanley 2013-12-27 19:33:46 +00:00
parent d8f93561f7
commit f4ba69da10

View File

@ -11,7 +11,11 @@
# NAME will either be the branch name or the tag name
NAME=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'`
mkdir -p _out/$NAME
mv * _out/$NAME
for FN in * ; do
if [ "_out" != "$FN" ] ; then
mv $FN _out/$NAME/
fi
done
publishers:
- ftp: