1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 01:06:39 +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{}