unison/scripts/watchwatch.sh
Arya Irani 72c936c1e0 fixed the type of ()
408 tests passing, 10 failing, 17 pending
2018-10-30 15:23:28 -04:00

16 lines
379 B
Bash
Executable File

#!/usr/bin/env bash
assert_command_exists () {
if ! ( type "$1" &> /dev/null ); then
echo "Sorry, I need the '$1' command, but couldn't find it installed." >&2
exit 1
fi
}
assert_command_exists stack
assert_command_exists sbt
assert_command_exists scala
assert_command_exists fswatch
assert_command_exists bloop
fswatch --batch . | "`dirname $0`/execwatch.sh" "$1"