Skip to content

Commit

Permalink
fix: Copy xml instead of move (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 24, 2024
1 parent bc2d8ff commit 82ad512
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ replaceXML() {
local asset="$2"

local path="$dir/autounattend.xml"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"
path="$dir/Autounattend.xml"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"
path="$dir/AutoUnattend.xml"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"
path="$dir/autounattend.XML"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"
path="$dir/Autounattend.XML"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"
path="$dir/AutoUnattend.XML"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"
path="$dir/AUTOUNATTEND.xml"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"
path="$dir/AUTOUNATTEND.XML"
[ -f "$path" ] && mv -f "$asset" "$path"
[ -f "$path" ] && cp "$asset" "$path"

return 0
}
Expand Down Expand Up @@ -103,7 +103,6 @@ finishInstall() {
# Mark ISO as prepared via magic byte
printf '\x16' | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none

rm -f "$STORAGE/windows.ver"
rm -f "$STORAGE/windows.boot"
cp /run/version "$STORAGE/windows.ver"

Expand Down Expand Up @@ -238,7 +237,7 @@ extractImage() {
local iso="$1"
local dir="$2"
local size size_gb space space_gb

local msg="Extracting downloaded ISO image..."
[ -n "$CUSTOM" ] && msg="Extracting local ISO image..."
info "$msg" && html "$msg"
Expand Down

0 comments on commit 82ad512

Please sign in to comment.