#! /bin/sh #---------------------------------------------------------------------------- # ask - ask user # # Copyright (c) 2003 Frank Meyer # # Creation: 19.07.2003 fm # Last Update: 19.07.2003 fm # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- while [ 1 ] do echo -e "$1 (y/n)? \c" read a case "$a" in y | yes) exit 0;; n | no) exit 1;; *) colecho "Please answer y(es) or n(o)!" br x br ;; esac done exit 1 # not reached