File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -446,18 +446,14 @@ ClassMethod Clone(remote As %String)
446
446
ClassMethod GenerateSSHKeyPair ()
447
447
{
448
448
set settings = ##class (SourceControl.Git.Settings ).%New ()
449
- set file = ##class (%Stream.FileCharacter ).%New ()
450
449
set dir = ##class (%File ).GetDirectory (settings .privateKeyFile )
451
- if (file = " " ) {
452
- Throw ##class (%Exception.General ).%New (" File " _file _" already exists" )
453
- }
454
450
if ##class (%File ).Exists (settings .privateKeyFile ) {
455
- Throw ##class (%Exception.General ).%New (" File " _ file _ " already exists" )
451
+ Throw ##class (%Exception.General ).%New (" File " _ settings . privateKeyFile _ " already exists" )
456
452
}
457
453
do ##class (%File ).CreateDirectoryChain (dir )
458
454
set outLog = ##class (%Library.File ).TempFilename ()
459
455
set errLog = ##class (%Library.File ).TempFilename ()
460
- do $zf (-100 ," /SHELL /STDOUT=" _$$$QUOTE(outLog )_" /STDERR=" _$$$QUOTE(errLog )_ " /STDIN= " _$$$QUOTE( file . Filename ) ,
456
+ do $zf (-100 ," /SHELL /STDOUT=" _$$$QUOTE(outLog )_" /STDERR=" _$$$QUOTE(errLog ),
461
457
" ssh-keygen" ,
462
458
" -t" ," ed25519" ,
463
459
" -C" ,settings .gitUserEmail ,
You can’t perform that action at this time.
0 commit comments