From ac81bbe7b9841ce961cfe32fbc1c6d13056c4293 Mon Sep 17 00:00:00 2001 From: apple <2571583272@qq.com> Date: Wed, 30 May 2018 10:02:20 +0800 Subject: [PATCH] support plan9 --- internal/pcsupdate/check_plan9.go | 5 +++++ internal/pcsupdate/check_unix.go | 2 +- internal/pcsupdate/check_windows.go | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 internal/pcsupdate/check_plan9.go diff --git a/internal/pcsupdate/check_plan9.go b/internal/pcsupdate/check_plan9.go new file mode 100644 index 00000000..7d00009b --- /dev/null +++ b/internal/pcsupdate/check_plan9.go @@ -0,0 +1,5 @@ +package pcsupdate + +func checkWritable() bool { + return true +} diff --git a/internal/pcsupdate/check_unix.go b/internal/pcsupdate/check_unix.go index 23e4e5a0..732afd04 100644 --- a/internal/pcsupdate/check_unix.go +++ b/internal/pcsupdate/check_unix.go @@ -1,4 +1,4 @@ -// +build !windows +// +build !windows,!plan9 package pcsupdate diff --git a/internal/pcsupdate/check_windows.go b/internal/pcsupdate/check_windows.go index 7d00009b..9bfd9e72 100644 --- a/internal/pcsupdate/check_windows.go +++ b/internal/pcsupdate/check_windows.go @@ -1,5 +1,7 @@ package pcsupdate +// TODO: check writable + func checkWritable() bool { return true }