Proper management of the IF cycle

This commit is contained in:
Andrea Draghetti 2019-10-07 16:00:46 +02:00 committed by GitHub
parent db3b7f577a
commit a787e78f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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