mirror of
https://github.com/flatpak/flatpak.git
synced 2025-12-31 11:58:03 -05:00
When using OpenBSD ksh `flatpak.sh` gives the following error: /etc/profile.d/flatpak.sh[16]: syntax error: `;;' unexpected By adding in the POSIX compliant optional opening parentheses for the case statement branches the profile can be made more portable. This still works with them more common shells such as bash and zsh and also still passes `shellcheck` checks. Aware that using OpenBSD ksh on Linux might be an edge case but there are probably BSD users who need to use Linux for work such as myself but still want to use the OBSD shell which has been ported to Linux: https://github.com/dimkr/loksh Many thanks to @gumnos for pointing out the fix here via Twitter. Closes: #2947 Approved by: mwleeds