From 674e935cf55c61d583d9cc4aa8da6f1e1b335486 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 17 Dec 2024 19:07:09 -0800 Subject: [PATCH] fix: Create symlinks only if they don't exist --- benchmark/npm-test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmark/npm-test.sh b/benchmark/npm-test.sh index 7bae0a9ff..063730076 100755 --- a/benchmark/npm-test.sh +++ b/benchmark/npm-test.sh @@ -3,8 +3,9 @@ # exit when any command fails set -e -# only do this if the files don't exist ai! -ln -s /npm-install/node_modules /npm-install/package-lock.json . +# Create symlinks if they don't exist +[ ! -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