Get screenshot URL from AppStream

This commit is contained in:
probonopd authored and GitHub committed 2017-08-21 20:22:50 +02:00
1 parent 5615b65880
commit 55653f9130
1 file changed
+1 -1
+1 -1
View File
@@ -302,7 +302,7 @@ for INPUTBASENAME in database/*; do
fi
# Screenshot
if [ -f database/$INPUTBASENAME/*appdata.xml ] ; then
SCREENSHOT=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/screenshots/screenshot[1]" -v .)
SCREENSHOT=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/screenshots/screenshot[1]/image" -v .)
if [ "$SCREENSHOT" != "" ] ; then
echo "screenshots:" >> apps/$INPUTBASENAME.md
echo "- $SCREENSHOT" >> apps/$INPUTBASENAME.md