| | #!/bin/sh |
---|
| | # promptuser.sh - User Prompting From Shell With validation |
---|
| | # tpromptuser.sh - User Prompting From Shell With validation |
---|
| | # Copyright (c) 2010, TundraWare Inc, Des Plaines, IL USA |
---|
| | # All Rights Reserved |
---|
| | # $Id: tpromptuser.sh,v 1.106 2010/10/07 19:23:48 tundra Exp $ |
---|
| | # $Id: tpromptuser.sh,v 1.107 2010/10/07 22:24:14 tundra Exp $ |
---|
| | |
---|
| | # Loop through a set of questions for the user to answer, storing |
---|
| | # their response back into the prompt variable itself. |
---|
| | # |
---|
| |
---|
| | done |
---|
| | |
---|
| | if [ _$DONE = _False ] |
---|
| | then |
---|
| | echo "Invalid Response! Must Be One Of $answers" |
---|
| | echo "Invalid Response! Must Be One Of: $answers" |
---|
| | fi |
---|
| | fi |
---|
| | |
---|
| | done |
---|
| |
---|
| | |