tool(autocommit): check for inotifywait package
shwarp
Sat, 15 Aug 2026 20:16:33 -0400
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
tools/autocommit
→
tools/autocommit
@@ -6,6 +6,12 @@ echo "Usage: ./autocommit <DIR> <FILE> [COMMIT_MESSAGE]"
exit 1 fi +if ! [ -x "$(command -v inotifywait)" ] +then + echo "This script requires 'inotify-tools'" + exit 1 +fi + DIRECTORY="$1" FILE="$2" COMMIT_MESSAGE="auto: $FILE changed"