Martijn Laan 5 hónapja
szülő
commit
37a2467326
1 módosított fájl, 6 hozzáadás és 6 törlés
  1. 6 6
      Projects/ISSigTool.dpr

+ 6 - 6
Projects/ISSigTool.dpr

@@ -187,9 +187,6 @@ end;
 
 
 procedure Go;
 procedure Go;
 begin
 begin
-  if KeyFilename = '' then
-    KeyFilename := GetEnv('ISSIGTOOL_KEY_FILE');
-
   const ArgList = TStringList.Create;
   const ArgList = TStringList.Create;
   try
   try
     for var I := 1 to NewParamCount do
     for var I := 1 to NewParamCount do
@@ -215,9 +212,12 @@ begin
     const Command = ArgList[0];
     const Command = ArgList[0];
     ArgList.Delete(0);
     ArgList.Delete(0);
 
 
-    if KeyFilename = '' then
-      RaiseFatalError('"--key-file=" option must be specified, ' +
-        'or set the ISSIGTOOL_KEY_FILE environment variable');
+    if KeyFilename = '' then begin
+      KeyFilename := GetEnv('ISSIGTOOL_KEY_FILE');
+      if KeyFilename = '' then
+        RaiseFatalError('"--key-file=" option must be specified, ' +
+          'or set the ISSIGTOOL_KEY_FILE environment variable');
+    end;
 
 
     if Command = 'generate-private-key' then begin
     if Command = 'generate-private-key' then begin
       if ArgList.Count <> 0 then
       if ArgList.Count <> 0 then