Handle when version is 'any'

This commit is contained in:
Leon Wright 2015-07-19 18:45:11 +08:00
parent fa22a3df17
commit 6b6bf9cba8
1 changed files with 12 additions and 3 deletions

View File

@ -30,10 +30,19 @@ create_dummy_ksp () {
fi
# TODO: Manual hack, a better way to handle this kind of identifiers may be needed.
if [ "$KSP_VERSION" == "0.90" ]
then
case $KSP_VERSION in
"0.90")
echo "Overiding '0.90' with '0.90.0'"
KSP_VERSION="0.90.0"
fi
;;
"any")
echo "Overriding any with $KSP_VERSION_DEFAULT"
KSP_VERSION=$KSP_VERSION_DEFAULT
;;
*)
echo "No override, Running with $KSP_VERSION"
;;
esac
echo "Creating a dummy KSP $KSP_VERSION install"