add docs for virtual folders

fix test cases on macOS
This commit is contained in:
Nicola Murino
2020-06-08 00:15:14 +02:00
parent 8306b6bde6
commit c231b663a3
3 changed files with 35 additions and 5 deletions

View File

@@ -6334,8 +6334,7 @@ func getExtAuthScriptContent(user dataprovider.User, nonJSONResponse bool) []byt
extAuthContent = append(extAuthContent, []byte("echo 'text response'\n")...)
} else {
json, _ := json.Marshal(user)
quoteJson := strconv.Quote(string(json))
extAuthContent = append(extAuthContent, []byte(fmt.Sprintf("echo '%v'\n", quoteJson))...)
extAuthContent = append(extAuthContent, []byte(fmt.Sprintf("echo '%v'\n", strconv.Quote(string(json))))...)
}
extAuthContent = append(extAuthContent, []byte("fi\n")...)
return extAuthContent