erplibre/script/install_dev.sh

23 lines
928 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [[ "${OSTYPE}" == "linux-gnu" ]]; then
OS=$(lsb_release -si)
VERSION=$(cat /etc/issue)
if [[ "${OS}" == "Ubuntu" ]]; then
2022-12-21 00:25:29 -05:00
if [[ "${VERSION}" == Ubuntu\ 18.04* || "${VERSION}" == Ubuntu\ 20.04* || "${VERSION}" == Ubuntu\ 22.04* ]]; then
echo "\n---- linux-gnu installation process started ----"
./script/install_debian_dependency.sh
else
2022-12-21 00:25:29 -05:00
echo "Your version is not supported, only support 18.04, 20.04 and 22.04 : ${VERSION}"
fi
2022-12-21 02:22:39 -05:00
elif [[ "${OS}" == "Debian" ]]; then
./script/install_debian_dependency.sh
else
2022-12-21 02:22:39 -05:00
./script/install_debian_dependency.sh
2022-12-21 00:25:29 -05:00
echo "Your Linux system is not supported, only support Ubuntu 18.04 or Ubuntu 20.04 or Ubuntu 22.04."
fi
elif [[ "${OSTYPE}" == "darwin"* ]]; then
echo "\n---- Darwin installation process started ----"
./script/install_OSX_dependency.sh
fi