forked from TrueCloudLab/restic
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