]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
minor fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 21 Dec 2008 16:16:27 +0000 (16:16 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 21 Dec 2008 16:16:27 +0000 (16:16 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@694 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 58cffb26d1db592fddd632c0e7b1ea8c96464920..9a123aa7e8457a521cd8e66839a588cc2a213962 100644 (file)
@@ -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/'
 
 }