Fixing sudo usage for dependency installation (#3315)

Fixes #3288, the fix is same as the bug reporter suggested.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
Csaba Osztrogonác
2019-11-14 10:20:30 +01:00
committed by Zoltan Herczeg
parent 3b5224b98d
commit 84f60c19ce
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -14,8 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
sudo apt-get update -q
sudo apt-get install -q -y \
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get update -q
${SUDO} apt-get install -q -y \
make cmake \
gcc gcc-multilib \
doxygen \
+6 -2
View File
@@ -14,7 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
sudo apt-get update -q
sudo apt-get install -q -y \
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get update -q
${SUDO} apt-get install -q -y \
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
qemu-user-static