~mil/sxmo-utils

ref: 0b79710cb5212418091134a6210da46758f289f4 sxmo-utils/scripts/core/sxmo_terminal.sh -rwxr-xr-x 223 bytes
0b79710cStacy Harper Fix and simplify the pipecomplete svkbd managing 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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 "$@"