diff options
author | Solderpunk <solderpunk@sdf.org> | 2018-12-19 21:34:26 +0000 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2018-12-19 21:34:26 +0000 |
commit | 8fb2a203f4f525e234096ce0bce04ce4d02dfa53 (patch) | |
tree | 4d975d43a1d0eb853f2c519b79c05771abe53e68 /telem.lua | |
parent | Drop bbs euid whenever it is not required, so that users don't end up in priv... (diff) |
Check more environment variables for the editor to use.
Diffstat (limited to 'telem.lua')
-rwxr-xr-x | telem.lua | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -13,10 +13,17 @@ table = require("table") unistd = require("posix.unistd") _BBS_ROOT = "/var/bbs/" -_EDITOR = os.getenv("EDITOR") +_EDITOR = os.getenv("BBSED") if not _EDITOR then - _EDITOR = "/usr/bin/vim.tiny" + _EDITOR = os.getenv("VISUAL") end +if not _EDITOR then + _EDITOR = os.getenv("EDITOR") +end +if not _EDITOR then + _EDITOR = "nano" +end + _COLOURS = { red=31, green=32, |