1
0
Fork 0
mirror of https://github.com/veggiemonk/awesome-docker.git synced 2025-04-20 16:08:03 +02:00

Prevent running script without a token

This commit is contained in:
Julien Bisconti 2018-05-29 00:07:41 +02:00
parent 285f154245
commit cf1fa8576f

View file

@ -5,6 +5,10 @@ process.on('unhandledRejection', error => {
console.log('unhandledRejection', error.message);
});
if (!process.env.TOKEN) {
throw new Error('no github token found');
}
const readme = 'README.md';
const API = 'https://api.github.com/';
const options = {