Skip to content

Commit b6288b8

Browse files
authored
Check whether lsb-core needs to be downloaded (#80)
* Check whether lsb-core needs to be downloaded This removes lsb-core from the forcefully installed dependencies, since newer apt-based distros seem to have lsb-core removed. Since lsb_release is in the base OS anyway as far as I'm concerned, just check whether it's required or not. * Add missing quotes around lsb_release check This fixes an issue where - if lsb_release isn't present - the shell would error out otherwise.
1 parent fb34c1c commit b6288b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
set -e
44
sudo apt update
5-
sudo apt install -y python3-pip python3-pexpect unzip busybox-static fakeroot kpartx snmp uml-utilities util-linux vlan qemu-system-arm qemu-system-mips qemu-system-x86 qemu-utils lsb-core wget tar
5+
sudo apt install -y python3-pip python3-pexpect unzip busybox-static fakeroot kpartx snmp uml-utilities util-linux vlan qemu-system-arm qemu-system-mips qemu-system-x86 qemu-utils wget tar
6+
7+
if [ ! -x "$(which lsb_release)" ]
8+
then
9+
sudo apt install -y lsb-core
10+
fi
611

712
echo "Installing binwalk"
813
git clone --depth=1 https://github.com/ReFirmLabs/binwalk.git

0 commit comments

Comments
 (0)