From 05724a68d4c598cdc02dca6f615a9bf70a8460e8 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 14 Feb 2022 02:59:51 -0800 Subject: [PATCH] skip other OS --- weed/command/mount2_notsupported.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 weed/command/mount2_notsupported.go diff --git a/weed/command/mount2_notsupported.go b/weed/command/mount2_notsupported.go new file mode 100644 index 000000000..18734035e --- /dev/null +++ b/weed/command/mount2_notsupported.go @@ -0,0 +1,15 @@ +//go:build !linux && !darwin && !freebsd +// +build !linux,!darwin,!freebsd + +package command + +import ( + "fmt" + "runtime" +) + +func runMount2(cmd *Command, args []string) bool { + fmt.Printf("Mount is not supported on %s %s\n", runtime.GOOS, runtime.GOARCH) + + return true +}