website/themes/hugo-theme-wave/bin/gitlab_cal-heatmap-container.sh
2020-01-12 23:32:32 +01:00

9 lines
197 B
Bash
Executable File

#!/bin/zsh
#github=github.com/users/syui/contributions_calendar_data
f=${0:a:h:h}/static/json/datas.json
u=gitlab.com/u/$USER/calendar
t=`curl -sL $u|grep '{"'`
echo ${t%,}|jq .
echo ${t%,} >! $f