mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-11-27 06:11:00 +01:00
find bin dir relative to bats test dir
This commit is contained in:
parent
85a01065d1
commit
ddb12e2e8b
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ stub_ruby_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
extract_usage_from() {
|
extract_usage_from() {
|
||||||
local program="../bin/$1"
|
local program="$BATS_TEST_DIRNAME/../bin/$1"
|
||||||
sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$program"
|
sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$program"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue