Removed the curl and wget commands as piping the
script to bash didn't wait for the option to be entered and exited
on its own.

Made some improvements to the script.