fix(packaging): fix deb packaging with not custom pkg data (#4411)

This commit is contained in:
Kevin Duret 2023-05-11 10:55:53 +02:00 committed by David Boucher
parent 213b1b9c67
commit e3ac8cdc76
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ for PLUGIN in $PLUGINS; do
pkg_summary=$(echo "${pkg_values[0]}")
plugin_name=$(echo "${pkg_values[1]}")
deb_dependencies=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.dependencies | join(",\\n ")')
deb_custom_pkg_data=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '("\\n" + .custom_pkg_data) // ""')
deb_custom_pkg_data=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.custom_pkg_data // "" | if . != "" then ("\\n" + .) else "" end')
sed -e "s/@NAME@/$PLUGIN_NAME_LOWER/g" \
-e "s/@SUMMARY@/$pkg_summary/g" \