Added quotes around the entries in the configuration file.
This commit is contained in:
parent
96107693f7
commit
c03ae7f739
@ -20,7 +20,7 @@ get_oauth_token() {
|
||||
redirectURI="file://$(realpath ${0})"
|
||||
# get client id and secret
|
||||
curl -s -X POST -d client_name="${softwareName}" -d redirect_uris="://${redirectURI}" "${instanceURL}/api/v1/apps" |
|
||||
jq --raw-output '"client_id=\(.client_id)\nclient_secret=\(.client_secret)"' > "${configPath}/${configFile}"
|
||||
jq --raw-output '"client_id=\"\(.client_id)\"\nclient_secret=\"\(.client_secret)\""' > "${configPath}/${configFile}"
|
||||
# Load the new variables from the configuration file
|
||||
source "${configPath}/${configFile}"
|
||||
# Create the url to get the oauth token
|
||||
|
Loading…
Reference in New Issue
Block a user