mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 14:35:21 -04:00
update [ci skip]
This commit is contained in:
parent
2afe98c0a9
commit
e36a753f23
1 changed files with 18 additions and 2 deletions
|
|
@ -1,3 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
curl -s https://api.github.com/repos/nwchemgit/nwchem/releases|egrep dow|sed 's/\"browser\_download\_url\":\ \"https:\/\/github.com\/nwchemgit\/nwchem\/releases\/download\///g' | sed 's/\"//g'
|
||||
#!/usr/bin/env bash
|
||||
if [[ $1 == "" ]]; then
|
||||
user=nwchemgit
|
||||
else
|
||||
user=$1
|
||||
fi
|
||||
if [[ $2 == "" ]]; then
|
||||
repos=nwchem
|
||||
else
|
||||
repos=$2
|
||||
fi
|
||||
echo downloads for $user/$repos
|
||||
echo https://api.github.com/repos/$user/$repos/releases
|
||||
curl -s https://api.github.com/repos/$user/$repos/releases|egrep -i down|sed 's/\"browser\_download\_url\":\ \"https:\/\/github.com\/$user\/$repos\/releases\/download\///g' | sed 's/\"//g'
|
||||
if [[ `uname -s` != 'Darwin' ]]; then
|
||||
echo Total number of downloads
|
||||
curl -s https://api.github.com/repos/$user/$repos/releases | egrep 'download_count' | cut '-d:' -f 2 | sed 's/,/+/' | xargs echo | xargs -n 1 -I{} echo {} 0 | bc
|
||||
fi
|
||||
# curl -s https://api.github.com/repos/nwchemgit/nwchem/releases|egrep dow|sed 's/\"browser\_download\_url\":\ \"https:\/\/github.com\/nwchemgit\/nwchem\/releases\/download\//g'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue