summaryrefslogtreecommitdiff
path: root/refreshexecutableunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-03-16 10:58:25 +0100
committerErich Eckner <git@eckner.net>2016-03-16 10:58:25 +0100
commit8ee951b524627d2966aebf6ef793748c393eabd8 (patch)
tree967898f6ca8d9c04c30a801953e0bd101690a9c4 /refreshexecutableunit.pas
parentb0f205894c62f0353aff4a7137cbd9da47bec656 (diff)
downloadunits-8ee951b524627d2966aebf6ef793748c393eabd8.tar.xz
temporäres Verzeichnis in refreshexecutableunit.pas wieder löschen
Diffstat (limited to 'refreshexecutableunit.pas')
-rw-r--r--refreshexecutableunit.pas7
1 files changed, 7 insertions, 0 deletions
diff --git a/refreshexecutableunit.pas b/refreshexecutableunit.pas
index 7c046dc..50da0a7 100644
--- a/refreshexecutableunit.pas
+++ b/refreshexecutableunit.pas
@@ -61,6 +61,13 @@ begin
end;
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;
end.