fix(packaging): fix deb packaging with not custom pkg data (#4411)
This commit is contained in:
parent
213b1b9c67
commit
e3ac8cdc76
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue