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

View file

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