From 566ea4cb614faf71140575998fd19c78864285e4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Apr 2024 12:12:09 +0200 Subject: [PATCH] fix: Check returnvalue --- src/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 51452d1..d55c2c2 100644 --- a/src/install.sh +++ b/src/install.sh @@ -258,7 +258,9 @@ finishInstall() { local aborted="$2" # Mark ISO as prepared via magic byte - printf '\x16' | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none + if ! printf '\x16' | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none; then + error "Failed to set magic byte!" + fi rm -f "$STORAGE/windows.boot" cp /run/version "$STORAGE/windows.ver"