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:
parent
b186944049
commit
badd59bc37
|
@ -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 ;;
|
||||
|
|
Loading…
Reference in New Issue