Update ksp_version defaults and add overrides for 1.1.X versions

This commit is contained in:
Matthew Heguy 2016-04-20 14:30:13 -04:00
parent 6ce26cd9e4
commit 064892ffee
1 changed files with 15 additions and 7 deletions

View File

@ -2,7 +2,7 @@
set -e
# Default flags.
KSP_VERSION_DEFAULT="1.0.5"
KSP_VERSION_DEFAULT="1.1.0"
KSP_NAME_DEFAULT="dummy"
# Locations of CKAN and validation.
@ -42,23 +42,31 @@ create_dummy_ksp () {
# TODO: Manual hack, a better way to handle this kind of identifiers may be needed.
case $KSP_VERSION in
"0.23")
echo "Overidding '0.23' with '0.23.0'"
echo "Overriding '0.23' with '0.23.0'"
KSP_VERSION="0.23.0"
;;
"0.25")
echo "Overidding '0.25' with '0.25.0'"
echo "Overriding '0.25' with '0.25.0'"
KSP_VERSION="0.25.0"
;;
"0.90")
echo "Overiding '0.90' with '0.90.0'"
echo "Overriding '0.90' with '0.90.0'"
KSP_VERSION="0.90.0"
;;
"1.0")
echo "Overidding '1.0' with '$KSP_VERSION_DEFAULT'"
KSP_VERSION=$KSP_VERSION_DEFAULT
echo "Overriding '1.0' with '1.0.5'"
KSP_VERSION="1.0.5"
;;
"1.0.99")
echo "Overidding '1.0.99' with '$KSP_VERSION_DEFAULT'"
echo "Overriding '1.0.99' with '1.0.5'"
KSP_VERSION="1.0.5"
;;
"1.1")
echo "Overriding '1.1' with '$KSP_VERSION_DEFAULT'"
KSP_VERSION=$KSP_VERSION_DEFAULT
;;
"1.1.99")
echo "Overriding '1.1.99' with '$KSP_VERSION_DEFAULT'"
KSP_VERSION=$KSP_VERSION_DEFAULT
;;
"any")