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:
Maarten van Gompel 2021-05-22 17:06:22 +02:00 committed by Stacy Harper
parent 0b79710cb5
commit eb34a970cb
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65
2 changed files with 7 additions and 1 deletions

View file

@ -11,4 +11,8 @@ else
set -- st "$@"
fi
exec "$@"
if [ -z "$*" ]; then
echo "sxmo_terminal.sh called in TERMMODE without any arguments (returning, nothing to do)" >&2
else
exec "$@"
fi