fi
#This should be a RAM Drive
-dst_dir="${tmp_dir}/jenkins.$$/$dst_name"
+build_dir="jenkins.$$"
+dst_dir="${tmp_dir}/${build_dir}/$dst_name"
if [ -d "$dst_dir" ]; then
echo "error: destination directory $dst_dir already exists." 1>&2
rm -rf ${dst_name}.tar $dst_dir
-mkdir -p ${src_repo}/src_dist
-mv -f ${dst_name}.tar.* ${src_repo}/src_dist
-mv -f $dst_name.zip ${src_repo}/src_dist
+mkdir -p ${src_repo}/../src_dist
+mv -f ${dst_name}.tar.* ${src_repo}/../src_dist
+mv -f $dst_name.zip ${src_repo}/../src_dist
+
+cd ${tmp_dir}
+ls -al
+rm -rf ${build_dir}
+ls -al
cat 1>&2 <<EOF
----------------------------------------------------------------------