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>
master
Maarten van Gompel 4 years ago committed by Stacy Harper
parent 0b79710cb5
commit eb34a970cb
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 6
      scripts/core/sxmo_terminal.sh
  2. 2
      scripts/modem/sxmo_modemtext.sh

@ -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

@ -4,6 +4,8 @@
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
TERMMODE=$([ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && echo "true")
err() {
echo "$1">&2
echo "$1" | dmenu -c -l 10

Loading…
Cancel
Save