mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 03:45:48 +00:00
fix: Check returnvalue
This commit is contained in:
parent
72647f496f
commit
566ea4cb61
1 changed files with 3 additions and 1 deletions
|
|
@ -258,7 +258,9 @@ finishInstall() {
|
||||||
local aborted="$2"
|
local aborted="$2"
|
||||||
|
|
||||||
# Mark ISO as prepared via magic byte
|
# 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"
|
rm -f "$STORAGE/windows.boot"
|
||||||
cp /run/version "$STORAGE/windows.ver"
|
cp /run/version "$STORAGE/windows.ver"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue