* Fix channel generation. I really shouldn't parse HTML...

git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@34690 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
This commit is contained in:
Eelco Dolstra 2013-02-24 21:05:32 +00:00
parent 3055fa3adf
commit 13c9841c25
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ if [ -z "$url" ]; then exit 1; fi
echo "View page is $url"
release=$($curl $url | sed 's|.*<h1>View.*(<tt>\(.*\)</tt>.*|\1|; t; d')
release=$($curl $url | sed 's|.*<h1>.*View \(.*\)</small.*|\1|; t; d')
if [ -z "$release" ]; then echo "Failed to get release"; exit 1; fi
echo "Release is $release"

View file

@ -11,7 +11,7 @@ if [ -z "$url" ]; then exit 1; fi
echo "View page is $url"
release=$($curl $url | sed 's|.*<h1>View.*(<tt>\(.*\)</tt>.*|\1|; t; d')
release=$($curl $url | sed 's|.*<h1>.*View \(.*\)</small.*|\1|; t; d')
if [ -z "$release" ]; then echo "Failed to get release"; exit 1; fi
echo "Release is $release"