mirror of
https://github.com/vector-im/element-call.git
synced 2026-01-18 02:32:27 +00:00
12 lines
397 B
Bash
Executable File
12 lines
397 B
Bash
Executable File
#!/usr/bin/sh
|
|
|
|
FILE=.links.temp-disabled.yaml
|
|
if test -f "$FILE"; then
|
|
# Only do the post-commit hook if the file was temp-disabled by the pre-commit hook.
|
|
# Otherwise linking was actively (`yarn links:disable`) disabled and this hook should noop.
|
|
mv .links.temp-disabled.yaml .links.yaml
|
|
yarnLog=$(yarn)
|
|
echo "[yarn-linker] The post-commit hook has re-enabled .links.yaml."
|
|
exit 1
|
|
fi
|