0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-22 01:00:40 +00:00

fix typos

This commit is contained in:
Nathan LaFreniere 2015-11-13 16:26:10 -08:00
parent 98f7f4ab71
commit 36a0e84f33

View File

@ -114,7 +114,7 @@ func (aws *AWS) visit(path string, info os.FileInfo, err error) error {
return nil
}
localPath := strings.TrimPrefix(path, vargs.Source)
localPath := strings.TrimPrefix(path, aws.vargs.Source)
if strings.HasPrefix(localPath, "/") {
localPath = localPath[1:]
}
@ -163,7 +163,7 @@ func (aws *AWS) visit(path string, info os.FileInfo, err error) error {
}
fmt.Printf("Uploading %s with Content-Type %s and permissions %s\n", localPath, contentType, access)
err = aws.bucket.PutReader(filepath.Join(vargs.Target, localPath), file, info.Size(), contentType, access)
err = aws.bucket.PutReader(filepath.Join(aws.vargs.Target, localPath), file, info.Size(), contentType, access)
if err != nil {
return err
}