Browse Source

Allow specifying an event dir

power-cycle
Luke Childs 5 years ago
parent
commit
25e00ab52d
  1. 6
      karen

6
karen

@ -2,7 +2,11 @@
# karen watches for signals and executes triggers in the events dir
# karen gets triggered a lot
root_dir="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/events"
if [[ -n "$1" ]]; then
root_dir="$(readlink -f $1)"
else
root_dir="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/events"
fi
signal_dir="$root_dir/signals"
trigger_dir="$root_dir/triggers"

Loading…
Cancel
Save