forked from the-distro/channel-scripts
* 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
This commit is contained in:
parent
daab27d850
commit
a00b5af18d
|
@ -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.*(<tt>\(.*\)</tt>.*|\1|; t; d')
|
||||
if [ -z "$release" ]; then echo "Failed to get release"; exit 1; fi
|
||||
|
||||
echo "Release is $release"
|
||||
|
|
|
@ -10,7 +10,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.*(<tt>\(.*\)</tt>.*|\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