Skip to content

Commit

Permalink
Check pnpm folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Jun 5, 2024
1 parent 349dcf8 commit 4004a13
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .buildkite/commands/install-node-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ 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 [ "$(uname -s)" = "Darwin" ]; then PNPM_PATH="$HOME/Library/pnpm/store/v3"; elif [ "$(uname -s)" = "Linux" ]; then PNPM_PATH="$HOME/.local/share/pnpm/store/v3"; else echo "Unsupported platform: $(uname -s)"; exit 1; fi; if [ -d "$PNPM_PATH" ]; then echo "PNPM cache path exists: $PNPM_PATH"; else echo "PNPM cache path does not exist: $PNPM_PATH"; fi

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

0 comments on commit 4004a13

Please sign in to comment.