Skip to content

Error in worker.sh #3650

@tbertels

Description

@tbertels

See https://github.com/AppImage/appimage.github.io/actions/runs/20827433205/job/59832372241?pr=3624

   # License
  AS_LICENSE=""
+ AS_LICENSE=
  DT_LICENSE=""
+ DT_LICENSE=
  if [ -f database/$INPUTBASENAME/*appdata.xml ] ; then
    AS_LICENSE=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/project_license" -v .) || true
  fi
+ '[' -f 'database/mpc-qt/*appdata.xml' ']'
  DT_LICENSE=$(grep -r "X-AppImage-Payload-License=.*" database/$INPUTBASENAME/*.desktop | cut -d '=' -f 2)
++ grep -r 'X-AppImage-Payload-License=.*' database/mpc-qt/io.github.mpc_qt.mpc-qt.desktop
++ cut -d = -f 2
+ DT_LICENSE=
worker.sh exited with a non-zero code: 1
Error: Process completed with exit code 1.

Code:

# License
AS_LICENSE=""
DT_LICENSE=""
if [ -f database/$INPUTBASENAME/*appdata.xml ] ; then
AS_LICENSE=$(cat database/$INPUTBASENAME/*appdata.xml | xmlstarlet sel -t -m "/component/project_license" -v .) || true
fi
DT_LICENSE=$(grep -r "X-AppImage-Payload-License=.*" database/$INPUTBASENAME/*.desktop | cut -d '=' -f 2)
if [ x"$AS_LICENSE" != x"" ] ; then
echo "license: $AS_LICENSE" >> apps/$INPUTBASENAME.md
elif [ x"$DT_LICENSE" != x"" ] ; then
echo "license: $DT_LICENSE" >> apps/$INPUTBASENAME.md
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions