]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cdebugpack: include cdebugpack.XXXX dir in tarball
authorSage Weil <sage@newdream.net>
Thu, 7 Oct 2010 16:31:31 +0000 (09:31 -0700)
committerSage Weil <sage@newdream.net>
Thu, 7 Oct 2010 16:31:31 +0000 (09:31 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/cdebugpack.in

index 43178a0bb6216a0fecdd1df34c9e9406d730ac57..bee913556edc5bf7412d2bf1de9b8718ad657d83 100644 (file)
@@ -127,9 +127,7 @@ wait_pid_exit $!
 
 
 # now create a tarball
-
-cd $tmp_path
-tar cvfz $dest_tar -C $tmp_path *
-
+tmp_path_dir=`echo $tmp_path | cut -d / -f 3`
+tar cvfz $dest_tar -C /tmp $tmp_path_dir
 rm -fR $tmp_path