Skip to content

Commit

Permalink
Merge pull request #103 from ArmanMazdaee/fix-themesDir-issue
Browse files Browse the repository at this point in the history
Fix themesDir issue
  • Loading branch information
stp-ip authored Jul 6, 2019
2 parents 675fccc + 57a1e61 commit 4713224
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"fmt"
"io/ioutil"
"path/filepath"

"github.com/resumic/schema/render"
"github.com/resumic/schema/theme"
Expand Down Expand Up @@ -30,6 +31,11 @@ func renderRun(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
} else {
themesDir, err = filepath.Abs(themesDir)
if err != nil {
return fmt.Errorf("Couldn't convert themesDir to absolute: %s", err)
}
}

resume, err := ioutil.ReadFile(resumePath)
Expand Down

0 comments on commit 4713224

Please sign in to comment.