From 1814d4cf660fbcd9eee0fb6f2bb9df541a392a31 Mon Sep 17 00:00:00 2001 From: Jesse Zbikowski Date: Tue, 13 Mar 2018 14:52:19 -0700 Subject: [PATCH] raise error and exit on nonexistent block device (#42) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d3a50f..39d8b45 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,7 @@ FSBL = 5B193300-FC78-40CD-8002-E86C45580B47 .PHONY: format-boot-loader format-boot-loader: $(bin) - @test -b $(DISK) || echo "$DISK: is not a block device" + @test -b $(DISK) || (echo "$(DISK): is not a block device"; exit 1) sgdisk --clear \ --new=1:2048:67583 --change-name=1:bootloader --typecode=1:$(BBL) \ --new=2:264192: --change-name=2:root --typecode=2:$(LINUX) \