mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
* Add MongoDB 4.2 to linux images * use the same installation script for all versions * Add helpers to get Ubuntu version * Improve helper functions * Rename install.sh to os.sh Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
20 lines
475 B
Bash
20 lines
475 B
Bash
#!/bin/bash
|
|
################################################################################
|
|
## File: install-helpers.sh
|
|
## Desc: Helper functions for installing tools
|
|
################################################################################
|
|
|
|
function isUbuntu16
|
|
{
|
|
lsb_release -d|grep 'Ubuntu 16' > /dev/null
|
|
}
|
|
|
|
function isUbuntu18
|
|
{
|
|
lsb_release -d|grep 'Ubuntu 18' > /dev/null
|
|
}
|
|
|
|
function getOSVersionLabel
|
|
{
|
|
isUbuntu16 && echo xenial || echo bionic
|
|
} |