else
ACTUALBUNDLEURL="${BUNDLEURL}"
BUNDLE="${BUNDLEURL##*/}"
- BUNDLEFOLDER="${BUNDLE//.zip}"
- BUNDLEVERSION="${BUNDLEFOLDER//distribution-karaf-}"
+ BUNDLEVERSION="$(basename $(dirname $BUNDLEURL))"
+ BUNDLEFOLDER="distribution-karaf-${BUNDLEVERSION}"
fi
if [ ${JDKVERSION} == 'openjdk8' ]; then