Skip to content

Commit

Permalink
why is there a +1 here ? mac os weirdness?
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeve committed Mar 7, 2014
1 parent 0eddae5 commit 608124b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions save.go
Expand Up @@ -2,14 +2,15 @@ package main

import (
"errors"
"github.com/kr/fs"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"sort"
"strings"

"github.com/kr/fs"
)

var cmdSave = &Command{
Expand Down Expand Up @@ -141,7 +142,7 @@ func copySrc(dir string, g *Godeps) error {
if w.Stat().IsDir() {
continue
}
dst := filepath.Join(dir, w.Path()[len(dep.ws)+1:])
dst := filepath.Join(dir, w.Path()[len(dep.ws):])
if err := copyFile(dst, w.Path()); err != nil {
log.Println(err)
ok = false
Expand Down

0 comments on commit 608124b

Please sign in to comment.