mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-02-05 17:28:22 +08:00
add sync.sh
This commit is contained in:
parent
f2a62dc6db
commit
78cf89a6fb
15
workspace/.sync.sh
Executable file
15
workspace/.sync.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
if [ "$#" -ne 1 ]; then
|
||||||
|
echo "Invalid arguments"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
url="https://api.powerbi.com/beta/72f988bf-86f1-41af-91ab-2d7cd011db47/datasets/2ff1e8a8-2f6f-4d73-a75d-86829e3f4574/rows?key=8f5xLp1gP8%2FzSee4vCUBcyjR65I9zZ6nb%2B%2F7bbzex%2FSctLX3ntIlAR0sxWpDdguuYyDtLdHK%2Fxbxj%2FrSBkX7eQ%3D%3D"
|
||||||
|
build_time=`date +%Y-%m-%dT%H:%M:%S.000+0800`
|
||||||
|
device_info=`uname -s -n -m`
|
||||||
|
|
||||||
|
curl --include --request POST --header "Content-Type: application/json" --data-binary "[{
|
||||||
|
\"device_info\" :\"$device_info\",
|
||||||
|
\"project_info\" :\"$1\",
|
||||||
|
\"time\" :\"$build_time\",
|
||||||
|
\"weight\" :1
|
||||||
|
}]" $url
|
Loading…
x
Reference in New Issue
Block a user