summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-03-14 09:25:40 -0400
committerScott Dodson <sdodson@redhat.com>2016-03-14 09:27:38 -0400
commit388f75b83c44259278793d4faebb4c14c36d5c6f (patch)
treea72f812bd18b8808351fae300ba9c7077333aec6
parent1b260a89cda950f919bfd62df17c786c3578bdfe (diff)
downloadopenshift-388f75b83c44259278793d4faebb4c14c36d5c6f.tar.gz
openshift-388f75b83c44259278793d4faebb4c14c36d5c6f.tar.bz2
openshift-388f75b83c44259278793d4faebb4c14c36d5c6f.tar.xz
openshift-388f75b83c44259278793d4faebb4c14c36d5c6f.zip
Allow origin version to be passed in as an argument
so we can continue syncing v1.1 content
-rwxr-xr-xroles/openshift_examples/examples-sync.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_examples/examples-sync.sh b/roles/openshift_examples/examples-sync.sh
index 22cef303b..6108a1485 100755
--- a/roles/openshift_examples/examples-sync.sh
+++ b/roles/openshift_examples/examples-sync.sh
@@ -6,7 +6,7 @@
# This script should be run from openshift-ansible/roles/openshift_examples
XPAAS_VERSION=ose-v1.2.0-1
-ORIGIN_VERSION=v1.2
+ORIGIN_VERSION=${1:-v1.2}
EXAMPLES_BASE=$(pwd)/files/examples/${ORIGIN_VERSION}
find ${EXAMPLES_BASE} -name '*.json' -delete
find ${EXAMPLES_BASE} -name '*.yaml' -delete