remove slash before marker
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
78f2431b03
commit
63f702ceae
1 changed files with 2 additions and 1 deletions
|
@ -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\$;;"
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue