We then simplify the sxmo_modemtext that was already using SSH related behaviors. Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
14 lines
223 B
Bash
Executable file
14 lines
223 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
TERMMODE=$([ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && echo "true")
|
|
|
|
if [ "$TERMMODE" = "true" ]; then
|
|
while [ "-e" != "$1" ] || [ 0 -eq $# ]; do
|
|
shift
|
|
done
|
|
shift
|
|
else
|
|
set -- st "$@"
|
|
fi
|
|
|
|
exec "$@"
|