Merge pull request #175 from gh0stshell/master

Updated bmaptool check #2
This commit is contained in:
evilsocket 2019-10-06 12:27:50 +02:00 committed by GitHub
commit 5ad03c6e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,9 +94,8 @@ function provide_raspbian() {
function setup_raspbian(){ function setup_raspbian(){
# Detect the ability to create sparse files # Detect the ability to create sparse files
if [ "${OPT_SPARSE}" -eq 0 ]; then if [ "${OPT_SPARSE}" -eq 0 ]; then
if [ which bmaptool -eq 0 ]; then if ! type "bmaptool" > /dev/null; then
echo "[!] bmaptool not available, not creating a sparse image" echo "[!] bmaptool not available, not creating a sparse image"
else else
echo "[+] Defaulting to sparse image generation as bmaptool is available" echo "[+] Defaulting to sparse image generation as bmaptool is available"
OPT_SPARSE=1 OPT_SPARSE=1