get_dir() 
{
    
  DIR=""
  while [ -z "$DIR" ] ; do
    echo -n "Enter directory to install to: "
    read DIR
  done
  if ! [ -d "$DIR" ] ; then
    if  ! query "Directory doesn't exist. Create it?" "n" ; then
      return 1
    fi
  fi
    
}

echo  "Default install is to /usr/X11R6/lib/X11/fonts/local"
if query  "Do you want to change it? " "n" ; then
  get_dir
else 
  DIR="/usr/X11R6/lib/X11/fonts/local"
fi
