From 88a50790725432602f962f36e1b957c3cc4f9b37 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Sat, 22 May 2021 15:21:48 +0200 Subject: [PATCH] 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 --- scripts/core/sxmo_common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/core/sxmo_common.sh b/scripts/core/sxmo_common.sh index 22dd936..cd7ef37 100644 --- a/scripts/core/sxmo_common.sh +++ b/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" 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 # certain coreutils rather than any other version that may be installed on the