From: rhatto Date: Sun, 21 Dec 2008 16:16:27 +0000 (+0000) Subject: minor fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0faecacbf140c5787271b2e62df92355456d3bb0;p=simplepkg.git minor fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@694 04377dda-e619-0410-9926-eae83683ac58 --- 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 - echo $1 | sed -e 's/.*\.\(.*\)$/\1/' + echo `basename $1` | sed -e 's/.*\.\(.*\)$/\1/' }