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:
parent
e2e612bd81
commit
223f96987a
1 changed files with 1 additions and 1 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue