Skip to content

Commit 4cbe850

Browse files
committed
fix: don't deploy after printing version
fixes #6
1 parent ac4f164 commit 4cbe850

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/ipfs-deploy.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ async function main() {
117117

118118
process.stdout.write(output)
119119

120+
if (argv.version) {
121+
process.stdout.write('\n')
122+
process.exit()
123+
}
124+
120125
if (argv.h) {
121126
// Had to do this because couldn't get yargs#epilogue() to work
122127
process.stdout.write(`

0 commit comments

Comments
 (0)