Skip to content

Commit

Permalink
ci(deploy-docs): Abort early if no AWS keys are present in the enviro…
Browse files Browse the repository at this point in the history
…nment
  • Loading branch information
ryanoglesby08 committed Aug 16, 2017
1 parent f254368 commit b179ea7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/deploy-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
// s3-website: https://github.com/klaemo/s3-website


// if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {
// console.error("'AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY' must be available in the environment.");
// process.exit(1);
// }
if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {
console.error("'AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY' must be available in the environment.");
process.exit(1);
}


const resolvePath = require('path').resolve;
Expand Down

0 comments on commit b179ea7

Please sign in to comment.