So I created this big script and want to ask for username and set a variable, however if the username exist in the username variable then continue with script otherwise ask the user to enter his name.
Flow:
-- start script "Enter User Name"
-- ask user to input username
-- if username is blank or different value then put that username in $USERNAME variable
-- then continue with the rest of the script
-- next time this user runs the script it will have his name loaded so he just presses enter to continue with the script.
-- If it is NOT the same user then, new user can erase existing input and enter a new name.
Hope it makes sense...
Thanks in advance for the help.