From 2b4333bded52951cc5c04be39250e3a6da8ee4e5 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 9 Jan 2024 11:22:18 +0100 Subject: [PATCH] path_to_str: simplify code --- client/lib/utilities.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/lib/utilities.sh b/client/lib/utilities.sh index d286195..df23c55 100644 --- a/client/lib/utilities.sh +++ b/client/lib/utilities.sh @@ -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' }