mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Revert the bash version in the replace function
This commit is contained in:
parent
8a278f74e7
commit
e8778b32a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue