From c98b7828c29105bcc51c104797e26388444a1a9e Mon Sep 17 00:00:00 2001 From: superconvert <48017165+superconvert@users.noreply.github.com> Date: Wed, 27 Jul 2022 13:06:23 +0800 Subject: [PATCH] Update env.sh --- env.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/env.sh b/env.sh index 80f39c7..17ea9e1 100644 --- a/env.sh +++ b/env.sh @@ -1,4 +1,11 @@ #!/bin/sh - + rm work/kernel_install/ work/glibc_install/ work/busybox_install/ -rf -apt -y install gcc g++ make gawk bison libelf-dev + +if [ -f "/usr/bin/apt" ]; then + apt -y install gcc g++ make gawk bison libelf-dev +fi + +if [ -f "/usr/bin/yum" ]; then + yum -y install gcc gcc-c++ make gawk bison elfutils-libelf +fi