From f960ad88fe0ea45008f7974ba14b62df6013f0da Mon Sep 17 00:00:00 2001 From: boredomist Date: Wed, 25 Apr 2012 16:59:03 -0400 Subject: [PATCH] Only grep links --- ff-nightly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ff-nightly b/ff-nightly index 95024ff..fe21302 100755 --- a/ff-nightly +++ b/ff-nightly @@ -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" | tail -n1` package="`echo "$result" | perl -ne 'm/(.*?)<\/a>/; print "$1\n"'`" date="`echo "$result" | perl -ne 'm/.*?<\/a><\/td><.*?>(.*?)\s+<\/td>/; print "$1\n"' | sed -r 's/\s/-/g'`"