Get screenshot URL from AppStream
This commit is contained in:
1 parent
5615b65880
commit
55653f9130
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user