mirror of
https://github.com/rclone/rclone.git
synced 2024-12-03 14:03:41 +08:00
9eab258ffb
Allow downstream packaging to build rclone without selfupdate command: $ go build -tags noselfupdate Fixes #5187
13 lines
192 B
Go
13 lines
192 B
Go
// +build !windows,!plan9,!js
|
|
// +build !noselfupdate
|
|
|
|
package selfupdate
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func writable(path string) bool {
|
|
return unix.Access(path, unix.W_OK) == nil
|
|
}
|