remove slash before marker

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-22 13:04:41 +01:00
parent 78f2431b03
commit 63f702ceae
1 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,7 @@ __cdist_object_arg()
cat "${__cdist_object_base_dir}/${object}/${arg}"
}
# Find objects, remove ./ and /MARKER
__cdist_object_list()
{
local basedir="$1"; shift
@ -167,7 +168,7 @@ __cdist_object_list()
cd "${basedir}"
find . -name "$__cdist_name_object_source" | \
sed -e "s;$__cdist_name_object_source\$;;" -e 's;^./;;'
sed -e 's;^./;;' -e "s;/$__cdist_name_object_source\$;;"
)
}