remove unecessary cd

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-28 15:00:20 +02:00
parent fc01ceb914
commit bba8c641e5

View file

@ -41,9 +41,6 @@ export __object_id="$__cdist_object_id"
export __object="$__cdist_object_dir" export __object="$__cdist_object_dir"
export __global="$__cdist_out_dir" export __global="$__cdist_out_dir"
# FIXME Needed?
cd "$__cdist_local_base_dir"
if [ -x "$__cdist_type_gencode" ]; then if [ -x "$__cdist_type_gencode" ]; then
__cdist_exec_fail_on_error "$gencode" > "$__cdist_tmp_file" __cdist_exec_fail_on_error "$gencode" > "$__cdist_tmp_file"
else else
@ -64,5 +61,4 @@ if [ "$(wc -l < "$__cdist_tmp_file")" -gt 0 ]; then
eof eof
chmod u+x "${__cdist_code_output}" chmod u+x "${__cdist_code_output}"
fi fi