From a1524ad10a86372ec443d459378c3c5ebf687044 Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Fri, 10 Feb 2023 00:03:31 +0400 Subject: [PATCH] Use system live-build if running on Debian --- build.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 92b59dc..a97acc7 100755 --- a/build.sh +++ b/build.sh @@ -23,9 +23,18 @@ echo -e " #----------------------# " -apt-get update -apt-get install -y binutils zstd live-build -dpkg -i ./debs/*.deb +# Use system live-build if running on Debian +dist="$(lsb_release -i -s)" + +if [ $dist == "Debian" ]; then + apt-get install -y binutils zstd live-build + dpkg -i ./debs/ubuntu-keyring*.deb +elif [ $dist == "Ubuntu" ]; then + apt-get install -y binutils zstd + dpkg -i ./debs/*.deb +else + echo "E: Unsupported distribution for building" +fi ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/lunar