Add a .links.temp-disabled.yaml state explicitly for when the pre-commit hook disabled the yaml file. otherwise we end up with a linked repo after every commit.

This commit is contained in:
Timo
2025-04-15 11:11:47 +02:00
parent e63aff3e9b
commit bec4724180
3 changed files with 6 additions and 6 deletions

View File

@@ -2,8 +2,7 @@
FILE=".links.yaml"
if test -f "$FILE"; then
# echo "$FILE exists. -> moving to .links.disabled.yaml"
mv .links.yaml .links.disabled.yaml
mv .links.yaml .links.temp-disabled.yaml
# echo "running yarn"
x=$(yarn)
y=$(git add yarn.lock)