mirror of
https://github.com/mudler/luet.git
synced 2025-09-01 07:09:13 +00:00
update vendor/
This commit is contained in:
15
vendor/github.com/marcsauter/single/single_darwin.go
generated
vendored
Normal file
15
vendor/github.com/marcsauter/single/single_darwin.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package single
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
// Filename returns an absolute filename, appropriate for the operating system
|
||||
func (s *Single) Filename() string {
|
||||
if len(Lockfile) > 0 {
|
||||
return Lockfile
|
||||
}
|
||||
return filepath.Join(os.TempDir(), fmt.Sprintf("%s.lock", s.name))
|
||||
}
|
Reference in New Issue
Block a user