Use os.TempDir() for temporary directory in default path

This commit is contained in:
Enrico204
2021-09-12 21:27:45 +02:00
committed by Michael Eischer
parent 1172d7e068
commit 223520b964
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ var cmdRoot = &cobra.Command{
}
var server = restserver.Server{
Path: "/tmp/restic",
Path: filepath.Join(os.TempDir(), "restic"),
Listen: ":8000",
}