Update IDF for download verification
[tails.git] / bin / update-trace-time
blobac9a648efedd624a211b41c4f15fe4fd0c2ac9c2
1 #!/bin/bash
3 set -eu
4 set -x
6 error () {
7 echo "error: ${*}" >&2
8 exit 1
11 USAGE="Usage: $(basename "$0") MESSAGE"
13 [ $# -eq 1 ] || error "$USAGE"
15 MESSAGE="$1"
17 TRACE_TIME=$(date +%s)
19 echo "${TRACE_TIME:?}" \
20 | ssh rsync.lizard sudo tee /srv/rsync/tails/tails/project/trace
22 echo "${TRACE_TIME:?}" > "${MASTER_CHECKOUT:?}/wiki/src/inc/trace"
24 set -eux
25 cd "${MASTER_CHECKOUT:?}"
26 git pull
27 git commit wiki/src/inc/trace -m "$MESSAGE"
28 git push origin master