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:
Thomas Preud'homme
2013-02-08 11:07:22 +01:00
parent 7a477d70ca
commit 4b8e7f1f39
Vendored
+1 -1
View File
@@ -5,7 +5,7 @@
fn_dirname()
{
case $1 in
*/*) echo "$1" | sed -e 's,/[^/]*,,';;
*/*) echo ${1%/*};;
*) echo '.'
esac
}