Skip to content

Commit 22faa6a

Browse files
committed
add-entry: fix CLI usage
When I converted this script so that it could be used as a module in an `actions/github-script` step in automation, I forgot to ensure that it still works as a command-line script. And this bug crept in... Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 3e10e48 commit 22faa6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const main = async (...args) => {
7979

8080
module.exports = main
8181

82-
if (require.main === module) main(process.argv.slice(2)).catch(e => {
82+
if (require.main === module) main(...process.argv.slice(2)).catch(e => {
8383
console.error(e)
8484
process.exit(1)
8585
})

0 commit comments

Comments
 (0)