Changed SetVenture to use Sprintf for prepending "~username".
parent
4476d0f449
commit
7f1f3520ec
2
main.go
2
main.go
|
@ -116,7 +116,7 @@ func SetVenture(args []string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepend status with user's name
|
// Prepend status with user's name
|
||||||
input = "~" + curUser.Username + input
|
input = fmt.Sprintf("~%s%s", curUser.Username, input)
|
||||||
|
|
||||||
// Write file and create if it doesn't exist as world-readable.
|
// Write file and create if it doesn't exist as world-readable.
|
||||||
err = ioutil.WriteFile(outputPath, []byte(input), 0644)
|
err = ioutil.WriteFile(outputPath, []byte(input), 0644)
|
||||||
|
|
Loading…
Reference in New Issue