This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ install_build_deps() {
5656 if [[ " $OS " =~ .* centos.* ]]
5757 then
5858 echo -e " \x1b[32mInstalling dependent components and libraries via yum...\x1b[0m"
59- ${SUDO} yum install pkg-config gcc gcc-c++ nasm yasm freetype-devel -y
59+ ${SUDO} yum install pkg-config make gcc gcc-c++ nasm yasm freetype-devel -y
6060 elif [[ " $OS " =~ .* ubuntu.* ]]
6161 then
6262 echo -e " \x1b[32mInstalling dependent components and libraries via apt-get...\x1b[0m"
6363 ${SUDO} apt-get update
64- ${SUDO} apt-get install pkg-config make gcc g++ nasm yasm libfreetype6-dev
64+ ${SUDO} apt-get install pkg-config make gcc g++ nasm yasm libfreetype6-dev -y
6565 else
6666 echo -e " \x1b[32mUnsupported platform...\x1b[0m"
6767 fi
Original file line number Diff line number Diff line change 22# Copyright (C) <2019> Intel Corporation
33#
44# SPDX-License-Identifier: Apache-2.0
5+ this=` dirname " $0 " `
6+ this=` cd " $this " ; pwd`
7+ SUDO=" "
8+ if [[ $EUID -ne 0 ]]; then
9+ SUDO=" sudo -E"
10+ fi
11+
512get_nvm_node () {
13+ local OS=` ${this} /detectOS.sh | awk ' {print tolower($0)}' `
14+ if [[ " $OS " =~ .* centos.* ]]
15+ then
16+ ${SUDO} yum install wget -y
17+ elif [[ " $OS " =~ .* ubuntu.* ]]
18+ then
19+ ${SUDO} apt-get update
20+ ${SUDO} apt-get install wget -y
21+ fi
622 local VERSION=" v8.15.0"
723 wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
824 . ~ /.nvm/nvm.sh
Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ install_build_deps() {
5858 if [[ " $OS " =~ .* centos.* ]]
5959 then
6060 echo -e " \x1b[32mInstalling dependent components and libraries via yum...\x1b[0m"
61- ${SUDO} yum install pkg-config gcc gcc-c++ nasm yasm freetype-devel -y
61+ ${SUDO} yum install pkg-config make gcc gcc-c++ nasm yasm freetype-devel -y
6262 elif [[ " $OS " =~ .* ubuntu.* ]]
6363 then
6464 echo -e " \x1b[32mInstalling dependent components and libraries via apt-get...\x1b[0m"
6565 ${SUDO} apt-get update
66- ${SUDO} apt-get install pkg-config make gcc g++ nasm yasm libfreetype6-dev
66+ ${SUDO} apt-get install pkg-config make gcc g++ nasm yasm libfreetype6-dev -y
6767 else
6868 echo -e " \x1b[32mUnsupported platform...\x1b[0m"
6969 fi
You can’t perform that action at this time.
0 commit comments