Added quotes around the entries in the configuration file.

This commit is contained in:
stormdragon2976 2023-01-28 15:43:21 -05:00
parent 96107693f7
commit c03ae7f739

View File

@ -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