ensure there is always an $EDITOR set

It could occur that a user does not have an $EDITOR set when logging in
via SSH.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
master
Maarten van Gompel 4 years ago committed by Stacy Harper
parent eb34a970cb
commit 88a5079072
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 1
      scripts/core/sxmo_common.sh

@ -21,6 +21,7 @@ export CONTACTFILE="$XDG_CONFIG_HOME/sxmo/contacts.tsv"
export MODEMSTATEFILE="$XDG_RUNTIME_DIR/sxmo.modem.state" export MODEMSTATEFILE="$XDG_RUNTIME_DIR/sxmo.modem.state"
command -v "$KEYBOARD" > /dev/null || export KEYBOARD=svkbd-mobile-intl command -v "$KEYBOARD" > /dev/null || export KEYBOARD=svkbd-mobile-intl
command -v "$EDITOR" > /dev/null || export EDITOR=vis
# This script ensures all sxmo scripts are using the busybox version of # This script ensures all sxmo scripts are using the busybox version of
# certain coreutils rather than any other version that may be installed on the # certain coreutils rather than any other version that may be installed on the

Loading…
Cancel
Save