Skip to content

Commit

Permalink
Check for cache folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Jun 5, 2024
1 parent 349dcf8 commit b1f9703
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .buildkite/commands/install-node-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@ 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

echo "Listing files and directories in the current folder:"
ls

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

0 comments on commit b1f9703

Please sign in to comment.