Skip to content

Commit

Permalink
Test check if the files folder from npm exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Jun 5, 2024
1 parent 8e4f92d commit 349dcf8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .buildkite/commands/install-node-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ echo "--- :npm: Restore cache if present"
restore_cache "$CACHEKEY"
restore_cache "$PNPM_CACHEKEY"

# Check if /files/ folder exists after restoring cache
if [ -d "./files" ]; then
echo "The folder /files/ exists."
else
echo "The folder /files/ does not exist."
fi


if [[ "${RESTORE_ONLY}" == 'true' ]]; then
echo 'Exiting after restoring caches as per --restore-only call parameter.'
exit 0
Expand Down

0 comments on commit 349dcf8

Please sign in to comment.