summaryrefslogtreecommitdiffstats
path: root/assets/bin/ass
blob: 61d315fdbbeb25fd14e4dcceed6335e27222c266 (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.db"

METHOD="$1"
shift

case $METHOD in
"create")
  echo "`date +%s.%N`: create $1" | tee -a $JOURNAL
;;
"set")
  echo "`date +%s.%N`: set $1 $2 $3" | tee -a $JOURNAL 
;;
*)
  echo "you are made of stupid!"
  exit 23
;;
esac