2020-06-22 22:36:54 -04:00
|
|
|
#!/usr/bin/env bash
|
2020-04-13 00:06:13 -04:00
|
|
|
|
|
|
|
|
if [[ "${OSTYPE}" == "linux-gnu" ]]; then
|
|
|
|
|
OS=$(lsb_release -si)
|
2022-01-24 14:00:47 -05:00
|
|
|
VERSION=$(cat /etc/issue)
|
2020-04-13 00:06:13 -04:00
|
|
|
if [[ "${OS}" == "Ubuntu" ]]; then
|
2022-01-24 14:00:47 -05:00
|
|
|
if [[ "${VERSION}" == Ubuntu\ 18.04* || "${VERSION}" == Ubuntu\ 20.04* ]]; then
|
|
|
|
|
echo "\n---- linux-gnu installation process started ----"
|
|
|
|
|
./script/install_debian_dependency.sh
|
|
|
|
|
else
|
|
|
|
|
echo "Your version is not supported, only support 18.04 and 20.04 : ${VERSION}"
|
|
|
|
|
fi
|
2020-04-13 00:06:13 -04:00
|
|
|
else
|
2022-01-24 14:00:47 -05:00
|
|
|
echo "Your Linux system is not supported, only support Ubuntu 18.04 or Ubuntu 20.04."
|
2020-04-13 00:06:13 -04:00
|
|
|
fi
|
|
|
|
|
elif [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
|
|
|
echo "\n---- Darwin installation process started ----"
|
2020-09-04 17:22:28 -04:00
|
|
|
./script/install_OSX_dependency.sh
|
2020-04-13 00:06:13 -04:00
|
|
|
fi
|