File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " ssh-key-exchange.js" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Exchange ssh keys the easy way" ,
55 "private" : true ,
66 "scripts" : {
1212 "devDependencies" : {
1313 "@types/dashdash" : " ^1.14.0" ,
1414 "@types/getpass" : " ^0.1.0" ,
15- "@types/node" : " ^14.14.19 " ,
15+ "@types/node" : " ^14.14.21 " ,
1616 "@types/sshpk" : " ^1.10.5" ,
1717 "clean-webpack-plugin" : " ^3.0.0" ,
1818 "copy-webpack-plugin" : " ^7.0.0" ,
19- "terser-webpack-plugin" : " ^5.0.3 " ,
20- "ts-loader" : " ^8.0.13 " ,
19+ "terser-webpack-plugin" : " ^5.1.1 " ,
20+ "ts-loader" : " ^8.0.14 " ,
2121 "typescript" : " ^4.1.3" ,
22- "webpack" : " ^5.11.1 " ,
22+ "webpack" : " ^5.15.0 " ,
2323 "webpack-cli" : " ^4.3.1" ,
2424 "webpack-merge" : " ^5.7.3"
2525 },
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import {Opts, ParsedArgs} from "./helper/ParsedArgs";
77 // @ts -ignore
88 process . noDeprecation = true ;
99
10+ let success = false
1011 try {
1112 const opts : Opts = ParsedArgs . getOpts ( ) ;
1213 LocalHelper . handleRSAKeys ( opts . ID_RSA , opts . ID_RSA_PUB , opts . RSA_KEYGEN ) ;
@@ -18,11 +19,16 @@ import {Opts, ParsedArgs} from "./helper/ParsedArgs";
1819 }
1920 console . log ( "Summary" ) ;
2021 console . log ( Array . from ( { length : "Summary" . length } , _ => "-" ) . join ( "" ) ) ;
21- summaryList . forEach ( s => console . log ( `${ s . host } \t-> ${ s . success ? "OK" : "FAILED" } ${ s . message ? "- " + s . message : "" } ` ) ) ;
22+ summaryList . forEach ( s => {
23+ if ( s . success ) {
24+ success = true ;
25+ }
26+ console . log ( `${ s . host } \t-> ${ s . success ? "OK" : "FAILED" } ${ s . message ? "- " + s . message : "" } ` ) ;
27+ } ) ;
2228
2329 } catch ( e ) {
2430 console . error ( e ) ;
25- process . exit ( 1 ) ;
31+ success = false ;
2632 }
27- process . exit ( 0 ) ;
33+ process . exit ( success ? 0 : 1 ) ;
2834} ) ( ) ;
You can’t perform that action at this time.
0 commit comments