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.
10 lines
206 B
Bash
Executable file
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
|