[MOD] Install git out
This commit is contained in:
parent
dac319ab19
commit
8e425bfa3a
1 changed files with 5 additions and 1 deletions
4
setup
4
setup
|
@ -12,9 +12,11 @@ install_pkg() {
|
||||||
case $DISTRO in
|
case $DISTRO in
|
||||||
"Ubuntu"|"Debian GNU/Linux")
|
"Ubuntu"|"Debian GNU/Linux")
|
||||||
apt install -y $1
|
apt install -y $1
|
||||||
|
[ $? -eq 0 ] || exit 1
|
||||||
;;
|
;;
|
||||||
"Arch Linux")
|
"Arch Linux")
|
||||||
pacman -Syu --noconfirm $1
|
pacman -Syu --noconfirm $1
|
||||||
|
[ $? -eq 0 ] || exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -34,6 +36,7 @@ install_compiler() {
|
||||||
CC=gcc
|
CC=gcc
|
||||||
[ $COMPILER = 'clang' ] && CC=clang
|
[ $COMPILER = 'clang' ] && CC=clang
|
||||||
esac
|
esac
|
||||||
|
install_pkg git # Everyone has git!
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
}
|
}
|
||||||
install_ssl() {
|
install_ssl() {
|
||||||
|
@ -42,6 +45,7 @@ install_ssl() {
|
||||||
"Ubuntu"|"Debian GNU/Linux")
|
"Ubuntu"|"Debian GNU/Linux")
|
||||||
# Doesn't seem like Debian got LibreSSL
|
# Doesn't seem like Debian got LibreSSL
|
||||||
[ $SSL = 'libressl' ] && echo "::error:: LibreSSL is not on Debian"
|
[ $SSL = 'libressl' ] && echo "::error:: LibreSSL is not on Debian"
|
||||||
|
[ $SSL = 'libressl' ] && exit 1
|
||||||
install_pkg openssl
|
install_pkg openssl
|
||||||
;;
|
;;
|
||||||
"Arch Linux")
|
"Arch Linux")
|
||||||
|
|
Loading…
Reference in a new issue