mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-10 05:57:07 +00:00
13 lines
601 B
Bash
Executable File
13 lines
601 B
Bash
Executable File
#!/usr/bin/sh
|
|
|
|
FILE=".links.yaml"
|
|
if test -f "$FILE"; then
|
|
# echo "$FILE exists. -> moving to .links.disabled.yaml"
|
|
mv .links.yaml .links.disabled.yaml
|
|
# echo "running yarn"
|
|
x=$(yarn)
|
|
y=$(git add yarn.lock)
|
|
echo "YARN-LINKER-HOOK: We do not allow to commit with local links in the yarn.lock file. The pre-commit hook MODIFIED the yarn.lock file with disabled .links.yaml. Check the new git status (the hook added yarn.lock, was this desired?). The post-commit hook enables the links again. It moves .links.disabled.yaml to .links.yaml and runs yarn. Run \`git commit\` again!"
|
|
exit 1
|
|
fi
|