aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 58cffb2..9a123aa 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -1483,7 +1483,7 @@ function file_extension {
# output file extension
# usage: filesize <filename>
- echo $1 | sed -e 's/.*\.\(.*\)$/\1/'
+ echo `basename $1` | sed -e 's/.*\.\(.*\)$/\1/'
}