summaryrefslogtreecommitdiffstats
path: root/assets/bin/ass
blob: d29ea7e6ac67b92af22114653744bf1960aa0451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -euf

JOURNAL="/krebs/db/truth"

METHOD="$1"
shift

case $METHOD in
"create")
  echo "`date --utc --rfc-3339=ns` create $1" | tee -a $JOURNAL
;;
"set")
  echo "`date --utc --rfc-3339=ns` set $1 $2 $3" | tee -a $JOURNAL 
;;
*)
  echo "you are made of stupid!"
  exit 23
;;
esac