Merge pull request #166 from zimmra/handle-multiple-backslashes
Modify sed to only remove first `/`
This commit is contained in:
commit
1996dfae10
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ getArrAppInfo () {
|
||||||
if [ "$arrUrlBase" == "null" ]; then
|
if [ "$arrUrlBase" == "null" ]; then
|
||||||
arrUrlBase=""
|
arrUrlBase=""
|
||||||
else
|
else
|
||||||
arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///g")"
|
arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///")"
|
||||||
fi
|
fi
|
||||||
arrName="$(cat /config/config.xml | xq | jq -r .Config.InstanceName)"
|
arrName="$(cat /config/config.xml | xq | jq -r .Config.InstanceName)"
|
||||||
arrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)"
|
arrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)"
|
||||||
|
|
Loading…
Reference in a new issue