Skip to content

Commit

Permalink
Only grep links
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Apr 25, 2012
1 parent 97e1e2a commit f960ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ff-nightly
Expand Up @@ -11,7 +11,7 @@ esac

echo "Searching for nightly packages for Linux $arch..."

result=`curl -s http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ | grep "$arch\.tar\.bz2" | tail -n1`
result=`curl -s http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ | grep "$arch\.tar\.bz2</a>" | tail -n1`

package="`echo "$result" | perl -ne 'm/<a .*?>(.*?)<\/a>/; print "$1\n"'`"
date="`echo "$result" | perl -ne 'm/<a .*?>.*?<\/a><\/td><.*?>(.*?)\s+<\/td>/; print "$1\n"' | sed -r 's/\s/-/g'`"
Expand Down

0 comments on commit f960ad8

Please sign in to comment.