From 5a000c1f9ea93200c0cbe262b664fbad3440f624 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 9 May 2024 15:59:06 +0200 Subject: [PATCH] feat: Store installation type (#477) --- src/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index 398c77b..194d187 100644 --- a/src/install.sh +++ b/src/install.sh @@ -107,9 +107,9 @@ finishInstall() { if [ -w "$iso" ] && [[ "$aborted" != [Yy1]* ]]; then # Mark ISO as prepared via magic byte - local byte="\x16" - [[ "$MANUAL" == [Yy1]* ]] && byte="\x17" - if ! printf "$byte" | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none; then + local byte="16" + [[ "$MANUAL" == [Yy1]* ]] && byte="17" + if ! printf '%b' "\x$byte" | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none; then error "Failed to set magic byte in ISO file: $iso" && return 1 fi fi