-if (( $featureDirNumber < $FEATURE_DIRECTORY_COUNT ))
-then
- if (( $featureNumber > $FEATURES_PER_DIRECTORY ))
- then
- featureDirNumber=$(($featureDirNumber+1))
- featureNumber=1
- fi
-fi
-
- rm -f ${tmpDir}/${feature}-installer*.zip
- mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.onap.appc:${feature}-installer:${APPC_VERSION}:zip -DoutputDirectory=${tmpDir} -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true
- unzip -d ${featureDir}$featureDirNumber ${tmpDir}/${feature}-installer*zip
-featureNumber=$(($featureNumber+1))
+ rm -f ${tmpDir}/${feature}-installer*.zip
+ mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.onap.appc:${feature}-installer:${APPC_VERSION}:zip -DoutputDirectory=${tmpDir} -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true
+ unzip -d ${featureDir} ${tmpDir}/${feature}-installer*zip
+ unzip -n -d ${repoDir} ${featureDir}/${feature}/${feature}*zip
+ rm -f ${featureDir}/${feature}/${feature}*zip