Avoiding a useless fork from sed

This commit is contained in:
Steven Mondji-Lerider 2012-11-09 13:43:34 +00:00
parent 4cab24857d
commit 449bd834a8
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
# remove version from filename by stripping the extension
strip_ext() {
echo $1 | sed 's/\.[^.]*$//'| sed 's/[a-z_]*$//'
echo $1 | sed -e 's/\.[^.]*$//' -e 's/[a-z_]*$//'
}
# find the version from a filename by stripping everything but the extension