From 349dcf87a57d437bf0e61f2e6a3b4b79b17e07ae Mon Sep 17 00:00:00 2001 From: Gerardo Date: Wed, 5 Jun 2024 19:25:38 +0200 Subject: [PATCH] Test check if the files folder from npm exists --- .buildkite/commands/install-node-dependencies.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.buildkite/commands/install-node-dependencies.sh b/.buildkite/commands/install-node-dependencies.sh index d522c5f133..5ae55f8d00 100755 --- a/.buildkite/commands/install-node-dependencies.sh +++ b/.buildkite/commands/install-node-dependencies.sh @@ -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