Commit 401b7b0f authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'typos' into 'master'

Fix some typos

See merge request !7
parents c39d8e76 3748df15
......@@ -19,7 +19,7 @@ func (b *BashShell) GetName() string {
}
func (b *BashShell) writeCloneCmd(w io.Writer, build *common.Build, projectDir string) {
io.WriteString(w, "echo Clonning repository...\n")
io.WriteString(w, "echo Cloning repository...\n")
io.WriteString(w, fmt.Sprintf("rm -rf %s\n", projectDir))
io.WriteString(w, fmt.Sprintf("mkdir -p %s\n", projectDir))
io.WriteString(w, fmt.Sprintf("git clone %s %s\n", build.RepoURL, projectDir))
......@@ -40,7 +40,7 @@ func (b *BashShell) writeFetchCmd(w io.Writer, build *common.Build, projectDir s
}
func (b *BashShell) writeCheckoutCmd(w io.Writer, build *common.Build) {
io.WriteString(w, fmt.Sprintf("echo Checkouting %s as %s...\n", build.Sha[0:8], build.RefName))
io.WriteString(w, fmt.Sprintf("echo Checking out %s as %s...\n", build.Sha[0:8], build.RefName))
io.WriteString(w, fmt.Sprintf("git checkout -qf %s\n", build.Sha))
}
......
......@@ -28,7 +28,7 @@ func (b *CmdShell) writeCommandChecked(w io.Writer, format string, args ...inter
}
func (b *CmdShell) writeCloneCmd(w io.Writer, build *common.Build, dir string) {
b.writeCommand(w, "echo Clonning repository...")
b.writeCommand(w, "echo Cloning repository...")
b.writeCommandChecked(w, "rd /s /q \"%s\" 2> NUL 1>NUL", dir)
b.writeCommandChecked(w, "md \"%s\"", dir)
b.writeCommandChecked(w, "git clone \"%s\" \"%s\"", build.RepoURL, dir)
......@@ -49,7 +49,7 @@ func (b *CmdShell) writeFetchCmd(w io.Writer, build *common.Build, dir string) {
}
func (b *CmdShell) writeCheckoutCmd(w io.Writer, build *common.Build) {
b.writeCommand(w, "echo Checkouting %s as %s...", build.Sha[0:8], build.RefName)
b.writeCommand(w, "echo Checking out %s as %s...", build.Sha[0:8], build.RefName)
b.writeCommandChecked(w, "git checkout -qf \"%s\"", build.Sha)
}
......
......@@ -26,7 +26,7 @@ func (b *PowerShell) writeCommandChecked(w io.Writer, format string, args ...int
}
func (b *PowerShell) writeCloneCmd(w io.Writer, build *common.Build, dir string) {
b.writeCommand(w, "echo \"Clonning repository...\"")
b.writeCommand(w, "echo \"Cloning repository...\"")
b.writeCommandChecked(w, "if(Test-Path \"%s\") { Remove-Item -Force -Recurse \"%s\" }", dir, dir)
b.writeCommandChecked(w, "(Test-Path \"%s\") -or (New-Item \"%s\")", dir, dir)
b.writeCommandChecked(w, "git clone \"%s\" \"%s\"", build.RepoURL, dir)
......@@ -47,7 +47,7 @@ func (b *PowerShell) writeFetchCmd(w io.Writer, build *common.Build, dir string)
}
func (b *PowerShell) writeCheckoutCmd(w io.Writer, build *common.Build) {
b.writeCommand(w, "echo \"Checkouting %s as %s...\"", build.Sha[0:8], build.RefName)
b.writeCommand(w, "echo \"Checking out %s as %s...\"", build.Sha[0:8], build.RefName)
b.writeCommandChecked(w, "git checkout -qf \"%s\"", build.Sha)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment