diff --git a/cmd/helper_windows.go b/cmd/helper_windows.go index 5f170e4f4..ea619c116 100644 --- a/cmd/helper_windows.go +++ b/cmd/helper_windows.go @@ -25,9 +25,10 @@ func makeLink(srcPath, destPath string) error { file, err := exec.LookPath("junction") if err == nil { path, _ := filepath.Abs(file) - - cmd := exec.Command("cmd", "/c", "junction", destPath, srcPath) - return cmd.Run() + if com.IsFile(path) { + cmd := exec.Command("cmd", "/c", "junction", destPath, srcPath) + return cmd.Run() + } } } os.RemoveAll(destPath)