Skip to content

Commit

Permalink
Update name input
Browse files Browse the repository at this point in the history
  • Loading branch information
Jodebu committed Jun 2, 2020
1 parent 872f86a commit 6d082be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function uploadToDrive() {
parents: [folder]
},
media: {
body: fs.createReadStream(`${target}${fs.lstatSync(target).isDirectory() ? '.zip' : ''}`)
body: fs.createReadStream(`${name || target}${fs.lstatSync(target).isDirectory() ? '.zip' : ''}`)
}
}).then(() => actions.info('File uploaded successfully'))
.catch(e => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"main": "index.js",
"scripts": {
"test": "ncc build index.js -C -m -o dist"
"build": "ncc build index.js -C -m -o dist"
},
"author": "Yayo Acosta",
"license": "ISC",
Expand Down

0 comments on commit 6d082be

Please sign in to comment.