Good. Merged.
Quotes these variables otherwise spaces in variable names (even though we shouldn’t have any) would break that loop.
This line looks unnecessarily complex:
: ${app_path:="$(type -P "${app_name}" || true)"}
- Starting a line with
:is very uncommon style. - If we need
|| truewould be nice to have it outside of the variable assignment. :=-Set $FOO to val if unset (or null)- why do we need that there?
shellcheck reports:
In usr/bin/sandbox-app-launcher line 41:
: ${app_path:=“$(type -P “${app_name}” || true)”}
^-- SC2223: This default assignment may cause DoS due to globbing. Quote it.
Could we simplify please?
app_path="$(type -P "${app_name}")" || true
Objections?