Fix fn_dirname in configure script
Use ${parameter%word} construct to fix fn_dirname in configure script. Bonus: on less fork.
This commit is contained in:
parent
7a477d70ca
commit
4b8e7f1f39
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -5,7 +5,7 @@
|
||||||
fn_dirname()
|
fn_dirname()
|
||||||
{
|
{
|
||||||
case $1 in
|
case $1 in
|
||||||
*/*) echo "$1" | sed -e 's,/[^/]*,,';;
|
*/*) echo ${1%/*};;
|
||||||
*) echo '.'
|
*) echo '.'
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue