FS-3990 --resolve rework file type checking in getlib routine

Luke Weber reports that OS X's sed utility is broken.
This commit is contained in:
Travis Cross 2012-03-14 21:40:37 +00:00
parent b186944049
commit badd59bc37
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ fi
uncompressed=`echo $tarfile | sed 's/\(\(\.tar\.gz\|\.tar\.bz2\|\.tar\.xz\)\|\(\.tgz\|\.tbz2\)\)$//'`
case `echo $tarfile | sed 's/.*\.\([^.]\+\)$/\1/'` in
case `echo $tarfile | sed 's/^.*\.//'` in
bz2|tbz2) UNZIPPER=$BZIP ;;
xz) UNZIPPER=$XZ ;;
gz|tgz|*) UNZIPPER=$ZCAT ;;