summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-03-16 10:58:55 +0100
committerErich Eckner <git@eckner.net>2016-03-16 10:58:55 +0100
commitd8739f01beb315f3e49c191a9a2b29e66ddc1e28 (patch)
tree8e10627b6179155c3f25b081c8b70c3d14b64be2
parent8ee951b524627d2966aebf6ef793748c393eabd8 (diff)
downloadunits-d8739f01beb315f3e49c191a9a2b29e66ddc1e28.tar.xz
cleanup in gitupdateunit.pas
-rw-r--r--gitupdateunit.pas10
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.