Skip to content

Commit 349dcf8

Browse files
author
Gerardo
committed
Test check if the files folder from npm exists
1 parent 8e4f92d commit 349dcf8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.buildkite/commands/install-node-dependencies.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ echo "--- :npm: Restore cache if present"
2222
restore_cache "$CACHEKEY"
2323
restore_cache "$PNPM_CACHEKEY"
2424

25+
# Check if /files/ folder exists after restoring cache
26+
if [ -d "./files" ]; then
27+
echo "The folder /files/ exists."
28+
else
29+
echo "The folder /files/ does not exist."
30+
fi
31+
32+
2533
if [[ "${RESTORE_ONLY}" == 'true' ]]; then
2634
echo 'Exiting after restoring caches as per --restore-only call parameter.'
2735
exit 0

0 commit comments

Comments
 (0)