diff --git a/tpromptuser.sh b/tpromptuser.sh index 73effc4..2f95b52 100755 --- a/tpromptuser.sh +++ b/tpromptuser.sh @@ -3,7 +3,7 @@ # Copyright (c) 2010-2012, TundraWare Inc, Des Plaines, IL USA # All Rights Reserved. # For Updates: http://www.tundraware.com/Software/tpromptuser -# $Id: tpromptuser.sh,v 1.111 2012/06/05 20:01:17 tundra Exp $ +# $Id: tpromptuser.sh,v 1.112 2012/06/05 20:11:04 tundra Exp $ ##### # You are hereby granted a non-exclusive license to do whatever you @@ -56,11 +56,13 @@ # tPromptUser() - Shell Function To Prompt And Validate User Input ##### +# Takes a list of prompts as arguments + tPromptUser() { - for x in $PROMPTLIST + for x in $* do eval record=\$$x # Get the prompt record IFS=$DL # Get individual fields @@ -161,8 +163,7 @@ # Go get the user input and validate it -PromptUser - +tPromptUser ${PROMPTLIST} # Dump results for sake of this example only