From e8778b32a8f91ba408a32c6417a4e5c532777f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhat=20G=C3=BCl=C3=A7i=C3=A7ek?= Date: Fri, 1 Feb 2013 08:56:09 +0100 Subject: [PATCH] Revert the bash version in the replace function --- nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh b/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh index d1abe191..7a992a60 100644 --- a/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh +++ b/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh @@ -160,7 +160,7 @@ replaceVarBy() { # If we're not using Bash use sed, as we need to support as much as systems possible, also those running sh/dash etc if [ -n "${BASH_VERSION}" ]; then - REPLACEDRESULT="${1/${2}/${3##*/}}" # get last part after slash for paths + REPLACEDRESULT="${1/${2}/${3}}" else REPLACEDRESULT=$(echo "${1}" | sed "s/${2}/${3##*/}/") # get last part after slash for paths fi