Support $VISUAL and fall back to 'vi' is EDITOR is empty
authorFrank Terbeck <ft@bewatermyfriend.org>
Fri, 17 Apr 2009 18:01:03 +0000 (20:01 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 20 May 2009 21:25:13 +0000 (23:25 +0200)
remaster/grml-live-remaster

index ba5f749..9d62cf7 100755 (executable)
@@ -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