Skip to content

Instantly share code, notes, and snippets.

@saboyutaka saboyutaka/post.sh
Created Aug 31, 2018

Embed
What would you like to do?
#!/bin/bash
if [ $# -ne 2 ]; then
echo "引数にチーム名と点数を入力してください。" 1>&2
echo "e.g. sh post.sh xxxx 10000"
exit 1
fi
FIREBASE=ishocon2-geeoki-201809
TEAM=$1
SCORE=$2
curl https://$FIREBASE.firebaseio.com/teams/$TEAM.json -d "{\"score\":$SCORE, \"timestamp\":`date +%s`}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.