diff --git a/update-external-resources.sh b/update-external-resources.sh index 697a2d79b..0885779e9 100755 --- a/update-external-resources.sh +++ b/update-external-resources.sh @@ -64,9 +64,10 @@ echo_process "Updating submodules of the 'openhab-bundles' repo... " git -C "$resourcefolder/openhab-bundles" submodule update --recursive --remote --init echo_process "Fetching feature.xml file from the snapshot repository..." -wget -r -l 1 -npdH -A '*.xml' -P "$resourcefolder/jfrog-files" "https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/distro/openhab-addons/2.5.1-SNAPSHOT/" -# Copy the lates feature file into the finally used feature.xml -cp `ls .external-resources/jfrog-files/openhab-addons-2.5.0-*-features.xml | sort | tail -1` .external-resources/jfrog-files/feature.xml +# Getting all possibly relevant xml files +wget -r -l 2 -npdH -A '*2.5.*.xml' -P "$resourcefolder/jfrog-files" "https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/distro/openhab-addons/" +# Copy the latest feature file into the finally used feature.xml +cp `ls .external-resources/jfrog-files/openhab-addons-2.5.*-*-features.xml | sort | tail -1` .external-resources/jfrog-files/feature.xml echo_process "Running Maven Clean Plugin... " mvn clean