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() {
|
path_to_str() {
|
||||||
local path=$1
|
echo "${1}" | sed -e 's|^/||; s|/$||; s|/|:|g'
|
||||||
local str="${path}"
|
|
||||||
|
|
||||||
echo "${path}" | sed -e 's|^/||; s|/$||; s|/|:|g'
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue