Skip to content

Commit ed2b829

Browse files
authored
Locate the current shell into the new directory (#73)
This way, the `hugo` command can find the configuration file.
1 parent a0cf6b2 commit ed2b829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp2hugo/internal/hugogenerator/hugo_gen_setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (g Generator) setupHugo(outputDirPath string) (*string, error) {
175175
// Set theme to PaperMod
176176
fmt.Sprintf(`echo "theme: 'PaperMod'">> %s/hugo.yaml`, path.Join(outputDirPath, siteName)),
177177
// Verify that the site is set up correctly
178-
"hugo",
178+
fmt.Sprintf("cd %s && hugo", path.Join(outputDirPath, siteName)),
179179
}
180180
for i, command := range commands {
181181
log.Debug().

0 commit comments

Comments
 (0)