* 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:
parent
3055fa3adf
commit
13c9841c25
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue