2
2
mirror of https://github.com/octoleo/restic.git synced 2024-09-28 22:49:01 +00:00

Merge pull request #1100 from fawick/master

Allow absolute target path in build.go
This commit is contained in:
Alexander Neumann 2017-07-15 10:11:45 +02:00
commit ba6815d413

View File

@ -401,7 +401,10 @@ func main() {
if err != nil {
die("Getwd() returned %v\n", err)
}
output := filepath.Join(cwd, outputFilename)
output := outputFilename
if !filepath.IsAbs(output) {
output = filepath.Join(cwd, output)
}
version := getVersion()
constants := Constants{}