tool(autocommit): check git installed lol As if, but I'm trying to be nice.
shwarp
Sun, 30 Aug 2026 15:24:52 -0400
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
tools/autocommit
→
tools/autocommit
@@ -12,6 +12,12 @@ echo "This script requires 'inotify-tools'"
exit 1 fi +if ! [ -x "$(command -v git)" ] +then + echo "This script requires 'git'" + exit 1 +fi + FILE=$(basename "$1") DIRECTORY=$(echo ${1::-"$((${#FILE} + 1))"}) COMMIT_MESSAGE="auto: $FILE changed"