diff options
Diffstat (limited to 'roles/openshift_examples/examples-sync.sh')
-rwxr-xr-x | roles/openshift_examples/examples-sync.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/openshift_examples/examples-sync.sh b/roles/openshift_examples/examples-sync.sh index a261a6ddd..090fb9042 100755 --- a/roles/openshift_examples/examples-sync.sh +++ b/roles/openshift_examples/examples-sync.sh @@ -6,9 +6,10 @@ # This script should be run from openshift-ansible/roles/openshift_examples XPAAS_VERSION=ose-v1.1.0 -EXAMPLES_BASE=$(pwd)/files/examples -find files/examples -name '*.json' -delete -find files/examples -name '*.yaml' -delete +ORIGIN_VERSION=v1.1 +EXAMPLES_BASE=$(pwd)/files/examples/${ORIGIN_VERSION} +find ${EXAMPLES_BASE} -name '*.json' -delete +find ${EXAMPLES_BASE} -name '*.yaml' -delete TEMP=`mktemp -d` pushd $TEMP |