Updated Hook info

This commit is contained in:
Jules 2022-07-15 14:15:04 +02:00
parent f7190717d7
commit 7c7b3836aa
1 changed files with 9 additions and 3 deletions

View File

@ -8,9 +8,15 @@
if [[ ! -z "$VIRTUAL_ENV" ]]
then
clickusagemd ${GIT_DIR}pyproject.toml || exit 1
git add ${GIT_DIR}USAGE.md || exit 1
git commit -m"Autogenerated USAGE.md updated and added."
while read -d $'\0' arg ; do
echo $arg
if [[ "$arg" == '--follow-tags' ]] ; then
clickusagemd ${GIT_DIR}pyproject.toml || exit 1
git add ${GIT_DIR}USAGE.md || exit 1
git commit -m"Autogenerated USAGE.md updated and added."
exit 0
fi
done < /proc/$PPID/cmdline
fi
exit 0