all repos — shwarp-tools @ 91c065fd95bb09eab16bd0ac5c3f37e65d651c51

Tools and scripts

tool(autocommit): check git installed lol

As if, but I'm trying to be nice.
shwarp
Sun, 30 Aug 2026 15:24:52 -0400
commit

91c065fd95bb09eab16bd0ac5c3f37e65d651c51

parent

602a13c2c7aee6cf736c82bda00cc5751bf3a9e5

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"