remove unneeded editor check from lowmem images

This commit is contained in:
Tobias Powalowski 2010-08-19 09:05:11 +02:00
parent 792fe11637
commit 7901185c52

View file

@ -729,14 +729,9 @@ getdest() {
#
geteditor() {
if ! [ "$EDITOR" ]; then
if ! [ "$(which vi)" ]; then
DIALOG --menu "Select a Text Editor to Use" 10 35 3 \
"1" "nano (easier)" 2>$ANSWER || return 1
else
DIALOG --menu "Select a Text Editor to Use" 10 35 3 \
"1" "nano (easier)" \
"2" "vi" 2>$ANSWER || return 1
fi
DIALOG --menu "Select a Text Editor to Use" 10 35 3 \
"1" "nano (easier)" \
"2" "vi" 2>$ANSWER || return 1
case $(cat $ANSWER) in
"1") EDITOR="nano" ;;
"2") EDITOR="vi" ;;