mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Assuming /bin/sh is symlinked to bash, the handling of special builtin 'source' is slightly different between bash and bash-in-POSIX-mode (as a result of being invoked through /bin/sh). Specifically errors in builtin 'source' cannot be masked with `|| true`. Compare $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 Dec 11 11:00 /bin/sh -> bash $ /bin/sh -c 'set -e ; source nofile || true; echo ok' /bin/sh: line 1: source: nofile: file not found $ /bin/bash -c 'set -e ; source nofile || true; echo ok' /bin/bash: line 1: nofile: No such file or directory ok Thus ghostty from snap would not start at all when $SNAP_USER_DATA/.last_revision does not exist causign the launcher script to exit prematurely. Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>