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:
commit
ba6815d413
1 changed files with 4 additions and 1 deletions
5
build.go
5
build.go
|
@ -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{}
|
||||
|
|
Loading…
Reference in a new issue