From 8b307cf35eec4eb692cf864619294e481109c820 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 7 Dec 2013 10:15:24 -0500 Subject: [PATCH] Bug fixed in windows --- cmd/helper_windows.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)