cat <${CONFIG_PATH}/${FILE} else cp ${CONFIG_PATH}/${FILE} ${CONFIG_PATH}/${FILE}.bak fi # delete the auth section jq 'del(.auths)' ${FILE} | sponge ${FILE} # add the creditials store jq '. + {"credsStore": "secret-service"}' ${FILE} | sponge ${FILE}