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