I need to perform a md5sum check after downloading a zip file. My shell script looks like this:
wget $1 -O "$5.zip"
md5pkg=md5sum $5.zip
#perform check and other operations with md5pkg
Now, the check is performed before download completion, resulting to an error since the .zip file hasn't bean downloaded yet. What's the best approach to solve this problem?
thanks in advance.
md5pkg=$(md5sum $5.zip), but it's not the source of your problem.