more tests around Debian pkgs installation

This commit is contained in:
Philippe Teuwen
2018-10-03 09:04:21 +02:00
parent 9f400e970f
commit d8630570f2
+11 -2
View File
@@ -8,8 +8,17 @@ fi
set -x
# run this from inside miLazyCracker git repo
sudo apt-get install git libnfc-bin autoconf libnfc-dev
if [ -f "/etc/debian_version" ]; then
pkgs=""
for pkg in git libnfc-bin autoconf libnfc-dev; do
if ! dpkg -l $pkg >/dev/null 2>&1; then
pkgs="$pkgs $pkg"
fi
done
if [ "$pkgs" != "" ]; then
sudo apt-get install $pkgs
fi
fi
# install MFOC
[ -d mfoc ] || git clone https://github.com/nfc-tools/mfoc.git