From a00b5af18d9515f335481abc15733fe76eeacdad Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Apr 2012 15:54:06 +0000 Subject: [PATCH] * Urgh. Punishment for grepping info off a web page. git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@33816 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb --- mirror-nixos.sh | 2 +- mirror-nixpkgs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror-nixos.sh b/mirror-nixos.sh index e30d74a..e172fb3 100755 --- a/mirror-nixos.sh +++ b/mirror-nixos.sh @@ -11,7 +11,7 @@ if [ -z "$url" ]; then exit 1; fi echo "View page is $url" -release=$($curl $url | sed 's|

View.*(\(.*\).*|\1|; t; d') +release=$($curl $url | sed 's|.*

View.*(\(.*\).*|\1|; t; d') if [ -z "$release" ]; then echo "Failed to get release"; exit 1; fi echo "Release is $release" diff --git a/mirror-nixpkgs.sh b/mirror-nixpkgs.sh index 7dadeeb..631df41 100755 --- a/mirror-nixpkgs.sh +++ b/mirror-nixpkgs.sh @@ -10,7 +10,7 @@ if [ -z "$url" ]; then exit 1; fi echo "View page is $url" -release=$($curl $url | sed 's|

View.*(\(.*\).*|\1|; t; d') +release=$($curl $url | sed 's|.*

View.*(\(.*\).*|\1|; t; d') if [ -z "$release" ]; then echo "Failed to get release"; exit 1; fi echo "Release is $release"