mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-28 09:44:37 +00:00
12 lines
462 B
Bash
Executable File
12 lines
462 B
Bash
Executable File
#!/usr/bin/sh
|
|
|
|
FILE=.links.cjs
|
|
FILE_DIS=.links.temp-disabled.cjs
|
|
if test -f "$FILE"; then
|
|
mv $FILE .links.temp-disabled.cjs
|
|
x=$(pnpm install)
|
|
y=$(git add pnpm-lock.yaml)
|
|
echo "[pnpm-linker] The pre-commit hook has disabled $FILE and MODIFIED the pnpm-lock.yaml file. Review the staged changes (the hook added pnpm-lock.yaml, was this desired?) and run \`git commit \` again if they look okay. The post-commit hook will re-enable your links."
|
|
exit 1
|
|
fi
|