From ad023126c30e07f554fa8c7d8f5735fa739de23e Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Fri, 17 Apr 2009 20:01:03 +0200 Subject: [PATCH] Support $VISUAL and fall back to 'vi' is EDITOR is empty --- remaster/grml-live-remaster | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remaster/grml-live-remaster b/remaster/grml-live-remaster index ba5f749..9d62cf7 100755 --- a/remaster/grml-live-remaster +++ b/remaster/grml-live-remaster @@ -12,6 +12,7 @@ set -e # exit on any error VERSION='0.0.2' +GRML_LIVE_EDITOR=${VISUAL:-${EDITOR:-vi}} # source core functions {{{ . /etc/grml/lsb-functions @@ -68,7 +69,7 @@ for i in dev proc root sys tmp; do umount /remaster/chroot/$i done -$EDITOR /remaster/msg +${GRML_LIVE_EDITOR} /remaster/msg [ -d /remaster/iso ] || mkdir /remaster/iso -- 2.1.4