Files
element-call-Github/.githooks/post-commit
2026-04-21 10:53:56 +02:00

12 lines
373 B
Bash
Executable File

#!/usr/bin/sh
FILE=.links.cjs
FILE_DIS=.links.temp-disabled.cjs
if test -f "$FILE_DIS"; then
# Only do the post-commit hook if the file was temp-disabled by the pre-commit hook.
# Otherwise linking was actively (`pnpm links:disable`) disabled and this hook should noop.
mv $FILE_DIS $FILE
echo "[pnpm-linker] The post-commit hook has re-enabled $FILE"
exit 1
fi