aboutsummaryrefslogtreecommitdiffstats
path: root/reaktor/commands
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-08-31 13:10:17 +0200
committermakefu <github@syntax-fehler.de>2015-08-31 13:10:17 +0200
commitbeca84306888be2a627ae2ab14530f853b1218ed (patch)
tree51371b1a426312e3ddb817d97599cc05bc319a9e /reaktor/commands
parent7eba4293714b9dce86c07ccf2fdaddaa11a4c3c7 (diff)
Reaktor: update deps
Diffstat (limited to 'reaktor/commands')
-rwxr-xr-xreaktor/commands/tell-on_join3
1 files changed, 2 insertions, 1 deletions
diff --git a/reaktor/commands/tell-on_join b/reaktor/commands/tell-on_join
index 2dbff41..bb4982c 100755
--- a/reaktor/commands/tell-on_join
+++ b/reaktor/commands/tell-on_join
@@ -1,13 +1,14 @@
#! /bin/sh
set -euf
-# require flock from util-linux
+# require flock from util-linux (pkgs.utillinux)
if test "${FLOCK-}" != "$state_file"; then
exec env FLOCK="$state_file" flock "$state_file" "$0" "$@"
fi
to="$_from"
+test -e "$state_file" || touch "$state_file"
# print messages
sed -n '/^'"$to"' /{
s/^\([^ ]\+\) \([^ ]\+\) <\([^>]\+\)> \(.*\)/\1: \4 2-- \2, \3/p