From: Frank Terbeck Date: Fri, 17 Apr 2009 18:01:03 +0000 (+0200) Subject: Support $VISUAL and fall back to 'vi' is EDITOR is empty X-Git-Tag: v0.9.17~12 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=ad023126c30e07f554fa8c7d8f5735fa739de23e;ds=sidebyside Support $VISUAL and fall back to 'vi' is EDITOR is empty --- 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