fix: Create symlinks only if they don't exist

This commit is contained in:
Paul Gauthier (aider) 2024-12-17 19:07:09 -08:00
parent 6b4982d75b
commit 674e935cf5

View file

@ -3,8 +3,9 @@
# exit when any command fails # exit when any command fails
set -e set -e
# only do this if the files don't exist ai! # Create symlinks if they don't exist
ln -s /npm-install/node_modules /npm-install/package-lock.json . [ ! -e node_modules ] && ln -s /npm-install/node_modules .
[ ! -e package-lock.json ] && ln -s /npm-install/package-lock.json .
sed -i 's/\bxtest(/test(/g' *.spec.js sed -i 's/\bxtest(/test(/g' *.spec.js