apps: for YNH_HELPERS_VERSION to be a string for the bash env, otherwise Popen explodes

This commit is contained in:
Alexandre Aubin 2024-06-03 13:10:01 +02:00
parent 893e1230ef
commit f5dc382888

View file

@ -2968,8 +2968,8 @@ def _make_environment_for_app_script(
"YNH_APP_INSTANCE_NUMBER": str(app_instance_nb), "YNH_APP_INSTANCE_NUMBER": str(app_instance_nb),
"YNH_APP_MANIFEST_VERSION": manifest.get("version", "?"), "YNH_APP_MANIFEST_VERSION": manifest.get("version", "?"),
"YNH_APP_PACKAGING_FORMAT": str(manifest["packaging_format"]), "YNH_APP_PACKAGING_FORMAT": str(manifest["packaging_format"]),
"YNH_HELPERS_VERSION": manifest.get("integration", {}).get("helpers_version") "YNH_HELPERS_VERSION": str(manifest.get("integration", {}).get("helpers_version")
or manifest["packaging_format"], or manifest["packaging_format"]),
"YNH_ARCH": system_arch(), "YNH_ARCH": system_arch(),
"YNH_DEBIAN_VERSION": debian_version(), "YNH_DEBIAN_VERSION": debian_version(),
} }