TERMMODE was used but not set in sxmo_modemtext.sh + sanity check for sxmo_terminal
(fixed the shellcheck problem) Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
parent
0b79710cb5
commit
eb34a970cb
2 changed files with 7 additions and 1 deletions
|
@ -11,4 +11,8 @@ else
|
||||||
set -- st "$@"
|
set -- st "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$*" ]; then
|
||||||
|
echo "sxmo_terminal.sh called in TERMMODE without any arguments (returning, nothing to do)" >&2
|
||||||
|
else
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
fi
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
# shellcheck source=scripts/core/sxmo_common.sh
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
|
TERMMODE=$([ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && echo "true")
|
||||||
|
|
||||||
err() {
|
err() {
|
||||||
echo "$1">&2
|
echo "$1">&2
|
||||||
echo "$1" | dmenu -c -l 10
|
echo "$1" | dmenu -c -l 10
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue