summaryrefslogtreecommitdiffstats
path: root/assets/bin/ass
diff options
context:
space:
mode:
authorroot <root@kremium>2011-12-07 12:42:09 +0100
committerroot <root@kremium>2011-12-07 12:44:55 +0100
commit9b77caeac2409a70010c22b12f843b1dcc29cfb7 (patch)
tree3e8dbbc3b47a6931e60716c94c4d42bbf1e03083 /assets/bin/ass
parentc1f839101be7d48f6e918e9e969cf0fc3d743ea4 (diff)
parentdc9f6a510182b6947a8ee58b1940dd4ce2a32fd7 (diff)
Merge branch 'master' of github.com:krebscode/painload
Conflicts: assets/bin/ass
Diffstat (limited to 'assets/bin/ass')
-rwxr-xr-xassets/bin/ass5
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/bin/ass b/assets/bin/ass
index 87b750d3..c82a2565 100755
--- a/assets/bin/ass
+++ b/assets/bin/ass
@@ -4,6 +4,7 @@ set -euf
DB="/krebs/db"
JOURNAL="$DB/truth"
+HERE=$(dirname $(readlink -f $0))
(cd $DB && git pull >/dev/null && echo "pulled new version")
@@ -11,10 +12,10 @@ METHOD="$1"; shift
case $METHOD in
"create")
- echo "`date --utc --rfc-3339=ns` create $1" | check-truth | tee -a $JOURNAL
+ echo "`date --utc --rfc-3339=ns` create $1" | $HERE/check-truth | tee -a $JOURNAL
;;
"set")
- echo "`date --utc --rfc-3339=ns` set $1 $2 $3" | check-truth | tee -a $JOURNAL
+ echo "`date --utc --rfc-3339=ns` set $1 $2 $3" | $HERE/check-truth | tee -a $JOURNAL
;;
*)
echo "you are made of stupid!"