Skip to content

Commit

Permalink
(deploy) add quotes to output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cbebe authored and cancheta00 committed Nov 16, 2023
1 parent b5c87b9 commit 87589a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/deploy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ func main() {
defer cleanGitPublish()

// Make sure to create a new build output every time since it's blazingly fast anyway
if err := execCmd(fmt.Sprintf("hugo -d %s", output)); err != nil {
if err := execCmd(fmt.Sprintf("hugo -d \"%s\"", output)); err != nil {
log.Fatalf("failed to build: %v", err)
}

os.Chdir(gitPublish)
cloneCmd := fmt.Sprintf("git clone --depth 1 --branch %s %s %s", deploymentBranch, originUrl, gitPublish)
cloneCmd := fmt.Sprintf("git clone --depth 1 --branch \"%s\" \"%s\" \"%s\"", deploymentBranch, originUrl, gitPublish)
if err := execCmd(cloneCmd); err != nil {
// Branch doesn't exist, create new branch
execCmd("git init")
Expand Down

0 comments on commit 87589a9

Please sign in to comment.