Modify sed to only remove first /

Removes global sed flag so that only the first `/` is removed from the arrUrlBase config parameter.

Fixes https://github.com/RandomNinjaAtk/arr-scripts/issues/165
This commit is contained in:
zimmra 2024-01-16 18:28:34 -08:00
parent e2e612bd81
commit 223f96987a

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)"