Fix feature file fetching

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
pull/2077/head
Jerome Luckenbach 2023-05-07 19:49:33 +02:00 committed by GitHub
parent e5348cfe49
commit c564ab58c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -66,9 +66,9 @@ cp $resourcefolder/openhab-addons/bundles/org.openhab.binding.zigbee/org.openhab
echo_process "Fetching feature.xml file from the snapshot repository..."
# Getting all possibly relevant xml files
wget -r -l 2 -npdH -A '*3.0.*.xml' -P "$resourcefolder/jfrog-files" "https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/distro/openhab-addons/"
wget -r -l 2 -npdH -A '*features.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-3.0.*-features.xml | sort | tail -1` .external-resources/jfrog-files/feature.xml
cp `ls .external-resources/jfrog-files/openhab-addons-*-features.xml | sort | tail -1` .external-resources/jfrog-files/feature.xml
echo_process "Running Maven.... "
mvn clean