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

This commit is contained in:
Enrico204
2021-08-23 11:43:06 +02:00
committed by Michael Eischer
parent 1172d7e068
commit 223520b964
3 changed files with 10 additions and 2 deletions

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",
}