Merge pull request #166 from zimmra/handle-multiple-backslashes

Modify sed to only remove first `/`
This commit is contained in:
RandomNinjaAtk 2024-01-16 21:35:04 -05:00 committed by GitHub
commit 1996dfae10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ getArrAppInfo () {
if [ "$arrUrlBase" == "null" ]; then
arrUrlBase=""
else
arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///g")"
arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///")"
fi
arrName="$(cat /config/config.xml | xq | jq -r .Config.InstanceName)"
arrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)"