I'm trying to download a file and run it using the following script:
wget https://github.com/glenpike/npm-g_nosudo/archive/master.zip
unzip master.zip
cd npm-g_nosudo-master
./npm-g-no-sudo.sh
cd ../
rm -rf npm-g_nosudo-master
rm master.zip
The downloaded script pauses twice requiring user input:
- an 'enter' key press
- an 'y' followed by an 'enter'
How can I include this input in the above script?