Skip to content

Commit 3abb91a

Browse files
committed
fix: remove keypairs only in ci
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
1 parent 94c9692 commit 3abb91a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/svm/buildHelpers/buildSolanaVerify.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ for program in programs/*; do
1919

2020
# We don't need keypair files from the verified build and they cause permission issues on CI when Swatinem/rust-cache
2121
# tries to delete them.
22-
echo "Removing target/deploy/$program_name-keypair.json"
23-
sudo rm -f "target/deploy/$program_name-keypair.json"
22+
if [[ "${CI:-}" == "true" ]]; then
23+
echo "Removing target/deploy/$program_name-keypair.json"
24+
sudo rm -f "target/deploy/$program_name-keypair.json"
25+
fi
2426

2527
done

0 commit comments

Comments
 (0)