summaryrefslogtreecommitdiffstats
path: root/Reaktor/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
commitf7607f1297b071f019c1522e778978546eb381a4 (patch)
treefd81cc4822202f84db437b883b882a90496b34d1 /Reaktor/reaktor/commands
parente5c6eae9896aeda68204bb7010a6e4e26d7eaca1 (diff)
Reaktor: update deps
Diffstat (limited to 'Reaktor/reaktor/commands')
-rwxr-xr-xReaktor/reaktor/commands/tell-on_join3
1 files changed, 2 insertions, 1 deletions
diff --git a/Reaktor/reaktor/commands/tell-on_join b/Reaktor/reaktor/commands/tell-on_join
index 2dbff41a..bb4982cc 100755
--- a/Reaktor/reaktor/commands/tell-on_join
+++ b/Reaktor/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