Update worker.sh

This commit is contained in:
probonopd authored and GitHub committed 2017-08-20 14:52:07 +02:00
1 parent 06dc39512f
commit 7252e1ffca
1 file changed
+1 -1
+1 -1
View File
@@ -267,7 +267,7 @@ for INPUTBASENAME in database/*; do
# Description
DESKTOP_COMMENT=$(grep "^Comment=.*" database/$INPUTBASENAME/*.desktop | cut -d '=' -f 2- )
if [ -f database/$INPUTBASENAME/*appdata.xml ] ; then
./appstreamcli-x86_64.AppImage database/$INPUTBASENAME/*appdata.xml database/$INPUTBASENAME/appdata.yaml
./appstreamcli-x86_64.AppImage convert database/$INPUTBASENAME/*appdata.xml database/$INPUTBASENAME/appdata.yaml
SUMMARY=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/summary[1]" -v .)
if [ "$SUMMARY" != "" ] ; then
echo "description: $SUMMARY" >> apps/$INPUTBASENAME.md