diff options
author | drwtsn32x <rodney@savard.org> | 2019-10-05 16:20:57 +0300 |
---|---|---|
committer | drwtsn32x <rodney@savard.org> | 2019-10-05 16:20:57 +0300 |
commit | fa822638653cb746d3f7765dbe36f33b4a778e23 (patch) | |
tree | 85a5298c42bb600b2b930804ab4e0d56cee57bd0 /Duplicati/CommandLine | |
parent | 85f6565013d6b7c70d0e0e2518bce85c7ecb0d8f (diff) |
read tempdir command line option
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r-- | Duplicati/CommandLine/Program.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Duplicati/CommandLine/Program.cs b/Duplicati/CommandLine/Program.cs index 517cb0402..ab81fc942 100644 --- a/Duplicati/CommandLine/Program.cs +++ b/Duplicati/CommandLine/Program.cs @@ -179,6 +179,9 @@ namespace Duplicati.CommandLine if (!string.IsNullOrEmpty(System.Environment.GetEnvironmentVariable("AUTH_USERNAME")))
options["auth-username"] = System.Environment.GetEnvironmentVariable("AUTH_USERNAME");
+ if (options.ContainsKey("tempdir") && !string.IsNullOrEmpty(options["tempdir"]))
+ Library.Utility.SystemContextSettings.DefaultTempPath = options["tempdir"];
+
var showDeletionErrors = verboseErrors;
Duplicati.Library.Utility.TempFile.RemoveOldApplicationTempFiles((path, ex) =>
{
|