]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests: ceph-disk.sh: use "readlink -f" instead for fullpath 7606/head
authorKefu Chai <kchai@redhat.com>
Thu, 11 Feb 2016 12:08:32 +0000 (20:08 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 11 Feb 2016 12:08:35 +0000 (20:08 +0800)
commit8f42f89937ffbc46936e27080dd561be1d794d1c
tree4961536655549a79535912007ef7779e55ce9b40
parent765c7592afded56f27059fe3760837704adc403e
tests: ceph-disk.sh: use "readlink -f" instead for fullpath

if $PATH has ".." in it, and the program happen to be located in
"..", `which program` will print `../program` instead of its fullpath,
so we should always use `readlink -f` for the fullpath.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-disk/tests/ceph-disk.sh