1

How can I branch based on the status of wget?

view story
linux-howto

http://stackoverflow.com – I'm busy compiling a script to automatically install MySQL on Linux by sending a PuTTy window a number of commands. The issue I'm having is that the download link of the one repository keeps on changing, I need to have a prompt pop up if the link is not accessible. Here's what I got so far: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && echo "WE GOT IT" || echo "URL Invalid, Please specify new URL:" && read newurl && wget $newurl But on running the result regardless of if the file exists is: 1. The first file will download, it w (HowTos)