6fa74340a0
Implements self-update command Fixes #548 Fixes #5076
11 lines
168 B
Go
11 lines
168 B
Go
// +build !windows,!plan9,!js
|
|
|
|
package selfupdate
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func writable(path string) bool {
|
|
return unix.Access(path, unix.W_OK) == nil
|
|
}
|