From 223f96987a6e75bf24b47ea9264aeb087f442b60 Mon Sep 17 00:00:00 2001 From: zimmra Date: Tue, 16 Jan 2024 18:28:34 -0800 Subject: [PATCH] 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 --- universal/functions.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/universal/functions.bash b/universal/functions.bash index 1203506..6fce1d4 100644 --- a/universal/functions.bash +++ b/universal/functions.bash @@ -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)"