diff options
-rw-r--r-- | gitupdateunit.pas | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gitupdateunit.pas b/gitupdateunit.pas index 1542940..536acf4 100644 --- a/gitupdateunit.pas +++ b/gitupdateunit.pas @@ -15,7 +15,7 @@ uses var updated: boolean; myDir,baseDir, - output,tmpDir: string; + output: string; args: array of string; initialization @@ -24,8 +24,6 @@ initialization myDir:=extractFilePath(paramstr(0)); baseDir:=extractFilePath(leftStr(myDir,length(myDir)-1)); - tmpDir:=''; - output:=''; setlength(args,2); args[0]:='pull'; @@ -38,12 +36,6 @@ initialization refreshExecutable(myDir); end; end; - if (tmpDir<>'') and directoryexists(tmpDir) then begin - setlength(args,2); - args[0]:='-rf'; - args[1]:=tmpDir; - runCommand('rm',args,output); - end; setlength(args,0); end. |