Fixed bug on apt install

This commit is contained in:
dbroqua 2020-05-18 12:03:51 +02:00
parent 485d491bf1
commit ff0976bee0

View File

@ -64,6 +64,23 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
# Install build dependancies
apt install -y \
build-essential \
fakeroot \
dpkg-dev \
perl \
libssl-dev \
bc \
gnupg \
dirmngr \
libelf-dev \
flex \
bison \
libncurses-dev \
rsync \
git \
curl
if [ "${ARCHIVE}" != "" ] ; then
FILE=`basename "$ARCHIVE"`
@ -92,24 +109,6 @@ DIR="/usr/src/${KERNEL}"
# Make directory in /usr/src/
mkdir "${DIR}"
# Install build dependancies
apt install -y \
build-essential \
fakeroot \
dpkg-dev \
perl \
libssl-dev \
bc \
gnupg \
dirmngr \
libelf-dev \
flex \
bison \
libncurses-dev \
rsync \
git \
curl
# Go to build dir
cd "${DIR}" || exit