ansible-fprobe/get-dependencies.sh

19 lines
549 B
Bash
Raw Normal View History

2016-10-30 20:40:48 +01:00
#!/bin/sh
## one script to be used by travis, jenkins, packer...
umask 022
if [ $# != 0 ]; then
rolesdir=$1
else
rolesdir=$(dirname $0)/..
fi
2018-12-21 08:00:53 +01:00
[ ! -d $rolesdir/juju4.redhat_epel ] && git clone https://github.com/juju4/ansible-redhat-epel $rolesdir/juju4.redhat_epel
2017-01-07 09:55:05 +01:00
## galaxy naming: kitchen fails to transfer symlink folder
#[ ! -e $rolesdir/juju4.fprobe ] && ln -s ansible-fprobe $rolesdir/juju4.fprobe
[ ! -e $rolesdir/juju4.fprobe ] && cp -R $rolesdir/ansible-fprobe $rolesdir/juju4.fprobe
## don't stop build on this script return code
true