Skip to content

Commit 7dfa577

Browse files
committed
fix api credentials check
1 parent fe875ce commit 7dfa577

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

upload-images.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = async (options) => {
1616
if (uploadFiles.length == 0) return 0;
1717
if (!process.env.API_USERNAME || !process.env.API_PASSWORD) {
1818
console.log('API_USERNAME and API_PASSWORD must be set to upload images');
19+
return 0;
1920
}
2021
for(const filename of uploadFiles){
2122
const matches = filename.match(/(?<id>.{24})-(?<type>.+?)\.(?:jpg|png)/);

0 commit comments

Comments
 (0)