fix: do not attempt to sprintf properties

Previously, any properties with a % would be formatted using sprintf, causing issues when consuming those values later on.
This commit is contained in:
Jose Diaz-Gonzalez
2021-09-10 23:02:21 -04:00
parent 1ea821a6c3
commit 2a04ed70b6

View File

@@ -434,7 +434,7 @@ func PropertyWrite(pluginName string, appName string, property string, value str
}
defer file.Close()
fmt.Fprintf(file, value)
fmt.Fprint(file, value)
file.Chmod(0600)
SetPermissions(propertyPath, 0600)
return nil