mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #7606 from tchaikov/wip-fix-ceph-disk
tests: ceph-disk.sh: use "readlink -f" instead for fullpath Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
commit
4056ee298a
@ -132,8 +132,8 @@ function kill_daemons() {
|
||||
|
||||
function command_fixture() {
|
||||
local command=$1
|
||||
|
||||
[ $(which $command) = `readlink -f ../$command` ] || [ $(which $command) = `readlink -f $(pwd)/$command` ] || return 1
|
||||
local fpath=`readlink -f $(which $command)`
|
||||
[ "$fpath" = `readlink -f ../$command` ] || [ "$fpath" = `readlink -f $(pwd)/$command` ] || return 1
|
||||
|
||||
cat > $DIR/$command <<EOF
|
||||
#!/bin/bash
|
||||
|
Loading…
Reference in New Issue
Block a user