forked from evolix/evobackup
path_to_str: simplify code
This commit is contained in:
parent
f3e25a7beb
commit
2b4333bded
|
@ -137,8 +137,5 @@ send_mail() {
|
|||
}
|
||||
|
||||
path_to_str() {
|
||||
local path=$1
|
||||
local str="${path}"
|
||||
|
||||
echo "${path}" | sed -e 's|^/||; s|/$||; s|/|:|g'
|
||||
echo "${1}" | sed -e 's|^/||; s|/$||; s|/|:|g'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue