From 401f62402b5e55f35a0f66b962905c605dc8cb72 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 2 Sep 2022 16:59:43 -0400 Subject: [PATCH] bugfix --- root/scripts/Recyclarr.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/scripts/Recyclarr.bash b/root/scripts/Recyclarr.bash index 68402eb..71037d0 100644 --- a/root/scripts/Recyclarr.bash +++ b/root/scripts/Recyclarr.bash @@ -1,10 +1,10 @@ #!/usr/bin/env bash scriptVersion="1.0.002" -iif [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then +if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" - if [ "$arrUrlBase" = "null" ]; then - arrlBase="" + if [ "$arrUrlBase" == "null" ]; then + arrUrlBase="" else arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///g")" fi