Skip to content

_v2-entry-point: Check whether launch_args is empty before use

Simon McVittie requested to merge wip/steam-runtime-issue284 into master

In newer versions of bash, an empty array counts as having been set, and can be dereferenced as "${array[@]}" without triggering set -u. However, in older versions, empty arrays count as being unset, and the entry point script fails with launch_args[@]: unbound variable.

Resolves: https://github.com/ValveSoftware/steam-runtime/issues/284


/cc @denittis

Merge request reports