From 449bd834a8664d62d52792dc94d52ba1b5bda50c Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Fri, 9 Nov 2012 13:43:34 +0000 Subject: [PATCH] Avoiding a useless fork from sed --- install/upgrade_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/upgrade_check.sh b/install/upgrade_check.sh index 144170c6..f32ebc6c 100755 --- a/install/upgrade_check.sh +++ b/install/upgrade_check.sh @@ -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