Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- old/acml-ifort/PKGBUILD 2013-12-18 06:41:22.000000000 +0100
+++ new/acml-ifort/PKGBUILD 2013-12-25 16:59:28.788836594 +0100
@@ -20,7 +20,7 @@
wget ${_source}
mv "index.html?f=acml-5-3-1-ifort-64bit.tgz" "${srcdir}/index.html"
_nonce=`grep "nonce" "${srcdir}/index.html" | awk '{print $5;}' | sed "s^value=^^g" | sed 's^"^^g'`
- _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed "s^value=^^g" | sed 's^"^^g'`
+ _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed 's^value="^^g' | sed 's^"/>^^g'`
# Request actual file using acquired variables
curl -fLC - --retry 3 --retry-delay 3 -d amd_developer_central_nonce=${_nonce} \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment