quote variables

This commit is contained in:
Sebastian Hugentobler 2021-08-23 19:04:43 +02:00
parent 6d5774cd90
commit 5d98062d70
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -1,11 +1,11 @@
local rapidjson = require('rapidjson')
local clientId = {{ getenv "CLIENT_ID" }}
local clientSecret = {{ getenv "CLIENT_SECRET" }}
local username = {{ getenv "OAUTH_ADMIN_USER" }}
local password = {{ getenv "OAUTH_ADMIN_PASSWORD" }}
local tokenUrl = {{ getenv "GRANT_URL" }}
local userUrl = {{ getenv "USER_URL" }}
local clientId = "{{ getenv "CLIENT_ID" }}"
local clientSecret = "{{ getenv "CLIENT_SECRET" }}"
local username = "{{ getenv "OAUTH_ADMIN_USER" }}"
local password = "{{ getenv "OAUTH_ADMIN_PASSWORD" }}"
local tokenUrl = "{{ getenv "GRANT_URL" }}"
local userUrl = "{{ getenv "USER_URL" }}"
function os.capture(cmd, raw)
local f = assert(io.popen(cmd, 'r'))