sxmo-utils/scripts/core/sxmo_terminal.sh
Stacy Harper c5c5537873
Do not enforce -e TERMCMD args and fix TERMMODE
Enforcing -e break some possibilities to use TERMCMD that dont use it.

TERMCMD should be setup in xinit. This way, in ssh mode, the value still
is empty. This way, some custom bash or tmux config could use
it, configuring it.
2021-06-09 08:42:51 +02:00

10 lines
206 B
Bash
Executable file

#!/usr/bin/env sh
# shellcheck disable=SC2086
set -- $TERMCMD "$@"
if [ -z "$*" ]; then
echo "sxmo_terminal.sh called in TERMMODE without any arguments (returning, nothing to do)" >&2
else
exec "$@"
fi