From e5ef0981a4087ac52764b75d0dfe901e3ad3a2ce Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Thu, 28 Jul 2016 16:51:51 -0700 Subject: [PATCH] Don't move puma-dev to ~/bin. Fixes #6 --- src/puma/dev/setup.go | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/puma/dev/setup.go b/src/puma/dev/setup.go index efc2d70c..ed7b7d61 100644 --- a/src/puma/dev/setup.go +++ b/src/puma/dev/setup.go @@ -84,24 +84,12 @@ func Cleanup() { } func InstallIntoSystem(listenPort int) error { - path, err := osext.Executable() + binPath, err := osext.Executable() if err != nil { return err } - err = os.MkdirAll(mustExpand("~/bin"), 0755) - if err != nil { - return err - } - - fmt.Printf("* Copying %s to ~/bin/puma-dev...\n", path) - - binPath := mustExpand("~/bin/puma-dev") - - err = exec.Command("cp", path, binPath).Run() - if err != nil { - return err - } + fmt.Printf("* Use '%s' as the location of puma-dev\n", binPath) var userTemplate = `