Commit be398b6f authored by ale's avatar ale

Fix a typo that prevented Icecast admin password from being set

parent ae875b25
......@@ -13,7 +13,7 @@ import (
// invocations.
func getAdminPassword(adminPwPath string) (string, error) {
data, err := ioutil.ReadFile(adminPwPath)
if err != nil {
if err == nil {
return strings.TrimSpace(string(data)), nil
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