Skip to content

Commit 539b733

Browse files
authored
Allow empty DESKTOP_COMMENT
Modify DESKTOP_COMMENT assignment to prevent failure if grep finds no matches.
1 parent b97eaa5 commit 539b733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/worker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ sudo chmod a+x appstreamcli-x86_64.AppImage
446446
echo "" >> apps/$INPUTBASENAME.md
447447
echo "permalink: /$INPUTBASENAME/" >> apps/$INPUTBASENAME.md
448448
# Description
449-
DESKTOP_COMMENT=$(grep "^Comment=.*" database/$INPUTBASENAME/*.desktop | cut -d '=' -f 2- )
449+
DESKTOP_COMMENT=$(grep "^Comment=.*" database/$INPUTBASENAME/*.desktop | cut -d '=' -f 2- ) || true
450450
if [ -f database/$INPUTBASENAME/*appdata.xml ] ; then
451451
./appstreamcli-x86_64.AppImage convert database/$INPUTBASENAME/*appdata.xml database/$INPUTBASENAME/appdata.yaml
452452
SUMMARY=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/summary[1]" -v .) || true

0 commit comments

Comments
 (0)