Fix download script for Ubuntu 16.04 (#1826)

Kept 14.04 for CI and because 14.04 is LTS
This commit is contained in:
Alex Jordan authored and Jason Shirk committed 2016-08-15 18:35:40 -07:00
1 parent ced778e64b
commit b5f4e595cd
1 file changed
+23 -4
+23 -4
View File
@@ -22,24 +22,35 @@ case "$OSTYPE" in
case "$ID" in case "$ID" in
centos*) centos*)
sudo yum install -y curl wget sudo yum install -y curl wget
info=$(get_info rpm) version=rpm
;; ;;
ubuntu) ubuntu)
sudo apt-get install -y curl wget sudo apt-get install -y curl wget
info=$(get_info deb) case "$VERSION_ID" in
14.04)
version=ubuntu.14.04-x64.deb
;;
16.04)
version=ubuntu.16.04-x64.deb
;;
*)
exit 2 >&2 "Ubuntu $VERSION_ID is not supported!"
esac
;; ;;
*) *)
exit 2 >&2 "$NAME is not supported!" exit 2 >&2 "$NAME is not supported!"
esac esac
;; ;;
darwin*) darwin*)
info=$(get_info pkg) version=pkg
;; ;;
*) *)
exit 2 >&2 "$OSTYPE is not supported!" exit 2 >&2 "$OSTYPE is not supported!"
;; ;;
esac esac
info=$(get_info $version)
# Parses $info for asset ID and package name # Parses $info for asset ID and package name
read asset package <<< $(echo $info | sed 's/[,"]//g' | awk '{ print $2; print $4 }') read asset package <<< $(echo $info | sed 's/[,"]//g' | awk '{ print $2; print $4 }')
@@ -58,7 +69,15 @@ case "$OSTYPE" in
sudo yum install "./$package" sudo yum install "./$package"
;; ;;
ubuntu) ubuntu)
sudo apt-get install -y libunwind8 libicu52 case "$VERSION_ID" in
14.04)
$icupackage=libicu52
;;
16.04)
$icupackage=libicu55
;;
esac
sudo apt-get install -y libunwind8 $icupackage
sudo dpkg -i "./$package" sudo dpkg -i "./$package"
;; ;;
*) *)