Merge pull request #75 from rstudio/opensuse152-install
Update quick install script for openSUSE 15.2
This commit is contained in:
commit
0eaf4ff908
1 changed files with 8 additions and 1 deletions
|
|
@ -100,6 +100,9 @@ detect_os_version () {
|
|||
if [[ "${os}" == "Ubuntu" ]]; then
|
||||
cat /etc/os-release | grep -e "^VERSION_ID\=*" | cut -f 2 -d '=' | sed -e 's/[".]//g'
|
||||
fi
|
||||
if [[ "${os}" == "SLES15" ]] || [[ "${os}" == "LEAP15" ]]; then
|
||||
cat /etc/os-release | grep -e "^VERSION_ID\=*" | cut -f 2 -d '=' | sed -e 's/[".]//g'
|
||||
fi
|
||||
}
|
||||
|
||||
# Returns the installer type
|
||||
|
|
@ -174,7 +177,11 @@ download_url () {
|
|||
echo "${CDN_URL}/opensuse-42/pkgs/${name}"
|
||||
;;
|
||||
"LEAP15" | "SLES15")
|
||||
echo "${CDN_URL}/opensuse-15/pkgs/${name}"
|
||||
if [ "${ver}" -ge 152 ]; then
|
||||
echo "${CDN_URL}/opensuse-152/pkgs/${name}"
|
||||
else
|
||||
echo "${CDN_URL}/opensuse-15/pkgs/${name}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue